The Poor Man's (or Woman's) Intrusion Detection System
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

129 lines
4.0 KiB

  1. # This is DPAK Debian packaging source
  2. # DPAK is an tool of JF Possibilities, Inc. Written by ChipMaster.
  3. Source: poorman-ids
  4. Priority: extra
  5. Section: unknown
  6. Maintainer: Jon Foster <jon@jfpossibilities.com>
  7. Homepage: https://yeolpishack.net/repos/ChipMaster/Poor-Mans-IDS/wiki
  8. Description: Poor Man's IDS
  9. A simple tool to alert you to unknown traffic on your network.
  10. Copyright: .
  11. (c) 2021 JF Possibilities, Inc. All rights reserved.
  12. Origin: JFP
  13. Packaged-For: JF Possibilities, Inc.
  14. changelog:
  15. (0.6-1j) unstable; urgency=low
  16. .
  17. ** This is an alpha release **
  18. .
  19. * Change handling of CNAMEs to report the originally requested name.
  20. .
  21. -- Jon Foster <jon@jfpossibilities.com> Mon, 21 Mar 2022 14:56:19 -0700
  22. .
  23. (0.5-2j) unstable; urgency=low
  24. .
  25. ** This is an alpha release **
  26. .
  27. This is primarily a bug fix and testing release.
  28. .
  29. * Leave symbols in bins to see how C++CMS reports errors.
  30. * Don't allow "*." or "*" in the wild card entry field. It breaks
  31. stuff!
  32. .
  33. -- Jon Foster <jon@jfpossibilities.com> Mon, 03 Jan 2022 14:22:30 -0800
  34. .
  35. (0.5-1j) unstable; urgency=low
  36. .
  37. ** This is an alpha release **
  38. .
  39. * Minor internal restructuring of CLI apps.
  40. * *NEW* domblacklist tool to make DNSmasq whole domain blocks.
  41. * Also added the iptraffic log CLI log analyzer
  42. .
  43. -- Jon Foster <jon@jfpossibilities.com> Mon, 03 Jan 2022 14:22:30 -0800
  44. .
  45. (0.4-3j) unstable; urgency=low
  46. .
  47. ** This is an alpha release **
  48. .
  49. * *FIX* mounting on sub URL of a site via FastCGI
  50. * Set UMASK in trafficctrl init script for better default perms.
  51. * Improved doc remarks in "sample.js".
  52. .
  53. -- Jon Foster <jon@jfpossibilities.com> Tue, 14 Sep 2021 13:35:22 -0700
  54. .
  55. (0.4-2j) unstable; urgency=low
  56. .
  57. ** This is an alpha release **
  58. .
  59. * Expanded sample trafficctrl configuration.
  60. .
  61. -- Jon Foster <jon@jfpossibilities.com> Mon, 13 Sep 2021 11:52:58 -0700
  62. .
  63. (0.4-1j) unstable; urgency=low
  64. .
  65. ** This is an alpha release **
  66. .
  67. * Added standard setup stuff like "init.d" scripts, syslog conf, and
  68. improved sample configuration files.
  69. .
  70. -- Jon Foster <jon@jfpossibilities.com> Thu, 08 Sep 2021 13:58:40 -0700
  71. .
  72. (0.3-1j) unstable; urgency=low
  73. .
  74. ** This is an alpha release **
  75. .
  76. * Initial Debianization and release of tools:
  77. - Log catching daemon
  78. - fCGI / HTTP prioritization tool
  79. - report tool
  80. .
  81. -- Jon Foster <jon@jfpossibilities.com> Thu, 02 Sep 2021 10:58:43 -0700
  82. .
  83. Build: sh
  84. make
  85. Clean: sh
  86. make distclean
  87. Package: poorman-ids
  88. Architecture: any
  89. # I think libssl is required by cppcms. libmysqlclient18 is probably cppdb
  90. Depends: libc6, libstdc++6, cppdb (>= 0.3.1-4), cppcms, libssl1.0.0
  91. #Depends: []
  92. Recommends: libmysqlclient18
  93. Description: .
  94. Install: sh
  95. dpak install -sbin iptraffic trafficmon/trafficmon trafficmon/badtrafficrpt
  96. dpak install -sbin trafficmon/dnsblacklist trafficmon/domblacklist
  97. dpak install -sbin controlpanel/trafficctrl
  98. dpak strip
  99. dpak install -conf -subdir poorman-ids sample.conf controlpanel/sample.js
  100. mkdir -p "$DPAK_ROOT/etc/default"
  101. cp trafficmon/default "$DPAK_ROOT/etc/default/trafficmon"
  102. cp controlpanel/default "$DPAK_ROOT/etc/default/trafficctrl"
  103. mkdir -p "$DPAK_ROOT/etc/init.d"
  104. cp trafficmon/init "$DPAK_ROOT/etc/init.d/trafficmon"
  105. cp controlpanel/init "$DPAK_ROOT/etc/init.d/trafficctrl"
  106. mkdir -p "$DPAK_ROOT/etc/syslog.d"
  107. cp trafficmon/syslog "$DPAK_ROOT/etc/syslog.d/trafficmon"
  108. Finalize: sh
  109. # Clean up permissions in the packaged files & folders.
  110. chmod -R g-s "$DPAK_ROOT"
  111. chmod 700 "$DPAK_ROOT/etc/poorman-ids"
  112. chmod 600 "$DPAK_ROOT/etc/poorman-ids/"*
  113. chmod 644 "$DPAK_ROOT/etc/default/"*
  114. chmod 755 "$DPAK_ROOT/etc/init.d/"*
  115. PostInst: sh
  116. update-rc.d trafficmon defaults
  117. update-rc.d trafficctrl defaults
  118. service trafficmon start || true
  119. service trafficctrl start || true
  120. PreRm: sh
  121. # Shut off services so they aren't RAM resident after install
  122. service trafficmon stop || true
  123. service trafficctrl stop || true
  124. PostRm: sh
  125. update-rc.d trafficmon remove
  126. update-rc.d trafficctrl remove