|
- # This is DPAK Debian packaging source
- # DPAK is an tool of JF Possibilities, Inc. Written by ChipMaster.
-
- Source: poorman-ids
- Priority: extra
- Section: unknown
- Maintainer: Jon Foster <jon@jfpossibilities.com>
- Homepage: https://yeolpishack.net/repos/ChipMaster/Poor-Mans-IDS/wiki
- Description: Poor Man's IDS
- A simple tool to alert you to unknown traffic on your network.
- Copyright: .
- (c) 2021 JF Possibilities, Inc. All rights reserved.
- Origin: JFP
- Packaged-For: JF Possibilities, Inc.
- changelog:
- (0.4-2j) unstable; urgency=low
- .
- ** This is an alpha release **
- .
- * Expanded sample trafficctrl configuration.
- .
- -- Jon Foster <jon@jfpossibilities.com> Mon, 13 Sep 2021 11:52:58 -0700
- .
- (0.4-1j) unstable; urgency=low
- .
- ** This is an alpha release **
- .
- * Added standard setup stuff like "init.d" scripts, syslog conf, and
- improved sample configuration files.
- .
- -- Jon Foster <jon@jfpossibilities.com> Thu, 08 Sep 2021 13:58:40 -0700
- .
- (0.3-1j) unstable; urgency=low
- .
- ** This is an alpha release **
- .
- * Initial Debianization and release of tools:
- - Log catching daemon
- - fCGI / HTTP prioritization tool
- - report tool
- .
- -- Jon Foster <jon@jfpossibilities.com> Thu, 02 Sep 2021 10:58:43 -0700
- .
- Build: sh
- make trafficmon/trafficmon trafficmon/badtrafficrpt
- cd controlpanel
- make
- Clean: sh
- make distclean
-
- Package: poorman-ids
- Architecture: any
- # I think libssl is required by cppcms. libmysqlclient18 is probably cppdb
- Depends: libc6, libstdc++6, cppdb (>= 0.3.1-4), cppcms, libssl1.0.0,
- libmysqlclient18
- Recommends: libmysqlclient18
- Description: .
- Install: sh
- dpak install -sbin trafficmon/trafficmon trafficmon/badtrafficrpt
- dpak install -sbin controlpanel/trafficctrl
- dpak strip
- dpak install -conf -subdir poorman-ids sample.conf controlpanel/sample.js
- mkdir -p "$DPAK_ROOT/etc/default"
- cp trafficmon/default "$DPAK_ROOT/etc/default/trafficmon"
- cp controlpanel/default "$DPAK_ROOT/etc/default/trafficctrl"
- mkdir -p "$DPAK_ROOT/etc/init.d"
- cp trafficmon/init "$DPAK_ROOT/etc/init.d/trafficmon"
- cp controlpanel/init "$DPAK_ROOT/etc/init.d/trafficctrl"
- mkdir -p "$DPAK_ROOT/etc/syslog.d"
- cp trafficmon/syslog "$DPAK_ROOT/etc/syslog.d/trafficmon"
- Finalize: sh
- # Clean up permissions in the packaged files & folders.
- chmod -R g-s "$DPAK_ROOT"
- chmod 700 "$DPAK_ROOT/etc/poorman-ids"
- chmod 600 "$DPAK_ROOT/etc/poorman-ids/"*
- chmod 644 "$DPAK_ROOT/etc/default/"*
- chmod 755 "$DPAK_ROOT/etc/init.d/"*
- PostInst: sh
- update-rc.d trafficmon defaults
- update-rc.d trafficctrl defaults
- PreRm: sh
- # Shut off services so they are RAM resident after install
- service trafficmon stop || true
- service trafficctrl stop || true
- PostRm: sh
- update-rc.d trafficmon remove
- update-rc.d trafficctrl remove
|