~alpine/aports

2

[alpine-aports] [PATCH 1/4] testing/psad: update to 2.4.2

Details
Message ID
<1449393709-11132-1-git-send-email-developer@it-offshore.co.uk>
Sender timestamp
1449393706
DKIM signature
missing
Download raw message
Patch: +24 -27
this also fixes whois lookups causing reboots in psad / busybox
---
 testing/psad/APKBUILD | 51 ++++++++++++++++++++++++---------------------------
 1 file changed, 24 insertions(+), 27 deletions(-)

diff --git a/testing/psad/APKBUILD b/testing/psad/APKBUILD
index e1cf8de..a883911 100644
--- a/testing/psad/APKBUILD
+++ b/testing/psad/APKBUILD
@@ -1,14 +1,14 @@
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=psad
pkgver=2.4.1
pkgrel=1
pkgver=2.4.2
pkgrel=0
pkgdesc="3 lightweight system daemons that analyze iptables log messages to detect port scans and other suspicious traffic"
url="http://cipherdyne.org/psad/"
arch="all"
license="GPL"
depends="perl iptables ip6tables ssmtp mailx psmisc perl-bit-vector perl-date-calc perl-iptables-chainmgr \
		perl-iptables-parse perl-net-ipv4addr perl-unix-syslog net-tools"
		perl-iptables-parse perl-net-ipv4addr perl-unix-syslog net-tools whois"
subpackages="$pkgname-doc"
source="http://cipherdyne.org/psad/download/$pkgname-nodeps-$pkgver.tar.gz
	psad.initd
@@ -21,24 +21,24 @@ build() {
	cd "$_builddir"

	#Set the config dirs
  sed -e "s|'/usr/sbin'|'$pkgdir/usr/sbin'|" \
      -e "s|'/usr/bin'|'$pkgdir/usr/bin'|" \
      -e "s|my \$mpath = \"/usr/share/man/man\$section\";|my \$mpath = \"$pkgdir/usr/share/man/man\$section\";|" \
          ./install.pl -i
       #/usr/sbin/psadwatchd set with last cmd
  sed -e "s|/var/log/psad|$pkgdir&|" \
      -e "s|/var/run/psad|$pkgdir&|" \
      -e "s|/var/lib/psad|$pkgdir&|" \
      -e "s|/usr/lib/psad|$pkgdir&|" \
      -e "s|/etc/psad|$pkgdir&|" \
      -e "s|/usr/bin/whois_psad|$pkgdir/usr/bin/whois|" \
      -e "s|/usr/sbin/fwcheck_psad|$pkgdir&|" \
      -e "s|/usr/sbin/kmsgsd|$pkgdir&|" \
      -e "s|/usr/sbin/psad|$pkgdir&|" \
	sed -e "s|'/usr/sbin'|'$pkgdir/usr/sbin'|" \
	-e "s|'/usr/bin'|'$pkgdir/usr/bin'|" \
	-e "s|my \$mpath = \"/usr/share/man/man\$section\";|my \$mpath = \"$pkgdir/usr/share/man/man\$section\";|" \
	./install.pl -i
	#/usr/sbin/psadwatchd set with last cmd
	sed -e "s|/var/log/psad|$pkgdir&|" \
	-e "s|/var/run/psad|$pkgdir&|" \
	-e "s|/var/lib/psad|$pkgdir&|" \
	-e "s|/usr/lib/psad|$pkgdir&|" \
	-e "s|/etc/psad|$pkgdir&|" \
	-e "s|/usr/bin/whois_psad|$pkgdir/usr/bin/whois|" \
	-e "s|/usr/sbin/fwcheck_psad|$pkgdir&|" \
	-e "s|/usr/sbin/kmsgsd|$pkgdir&|" \
	-e "s|/usr/sbin/psad|$pkgdir&|" \
        ./psad.conf -i

       # set mail command to mailx
  sed -e 's|/bin/mail;|/usr/bin/mail;|g' -i ./psad.conf
	# set mail command to mailx
	sed -e 's|/bin/mail;|/usr/bin/mail;|g' -i ./psad.conf

	#Disable install of generic init script & setting numeric run level
	START=$(sed -n '/if ($init_dir and &is_root()) {/=' ./install.pl)
@@ -47,7 +47,7 @@ build() {
	sed -e ''$START','$END'd' ./install.pl -i

	#populate install.answers so build does not wait for them
	echo -e "Would you like to merge the config from the existing psad installation:\t n;" > ./install.answers
	echo -e "Would you like to merge the config from the existing psad installation:\t y;" > ./install.answers
        echo -e "Preserve any user modfications in etc psad signatures:\t y;" >> ./install.answers
        echo -e "Preserve any user modfications in etc psad icmp_types:\t y;" >> ./install.answers
        echo -e "Preserve any user modfications in etc psad icmp6_types:\t y;" >> ./install.answers
@@ -85,7 +85,7 @@ package() {
	chmod -R o+r $pkgdir/usr/sbin/*
	chmod 0700 $pkgdir/var/lib/psad
	#remove whois symbolic link
	rm f $pkgdir/usr/bin/whois
	rm -f $pkgdir/usr/bin/whois

	# Fix the config
	sed -e "s|$pkgdir||" $pkgdir/etc/psad/psad.conf -i
@@ -96,17 +96,14 @@ package() {
		"$pkgdir"/etc/init.d/$pkgname || return 1
	install -m644 -D "$srcdir"/$pkgname.confd \
		"$pkgdir"/etc/conf.d/$pkgname || return 1

	# temporarily disable whois lookups https://github.com/mrash/psad/issues/22
	sed -i 's|ENABLE_WHOIS_LOOKUPS        Y;|ENABLE_WHOIS_LOOKUPS        N;|' "$pkgdir"/etc/psad/psad.conf
}

md5sums="acbb0ab7ae9a983386b8baee2a51b929  psad-nodeps-2.4.1.tar.gz
md5sums="e272f071dcf14175cc7841b329af1c51  psad-nodeps-2.4.2.tar.gz
b7d0fa3ee0b711a92f25ff8188dbf75b  psad.initd
bc07efebb41cc23c4be129bbbacc874b  psad.confd"
sha256sums="48bd4b1adbaef628cadfc271436c0fc0ca3cc9a8e79b13cf4244cc4db2e29b6c  psad-nodeps-2.4.1.tar.gz
sha256sums="10141df4be9ea2addbbfc5823c85ed04cfa89e910d9d717526680a0f1174af12  psad-nodeps-2.4.2.tar.gz
1a5b8f1b014a9f78b43cd6e4e1006d6901a654fc51dcbe2c405d509b4a950a78  psad.initd
74c72225fa37c367a458321b737050cacaf262f32b0cc13babc54468ff1988b9  psad.confd"
sha512sums="f1d68dd184cb4722aadd97a6d99959db325f370592ba785bf392bfd03c9497f1eaacbe497d98a7e35e91ea5fa776672fa735bbc92e4025e2978220f330d6a6e5  psad-nodeps-2.4.1.tar.gz
sha512sums="f4c9c11e6963db0dfdf3ca2faad46ba717ad55101503887b8edba33d27fc4e93b9e2577db763294c68e35b46dbe4b499876c328527be8181e3b9fb639ffa269f  psad-nodeps-2.4.2.tar.gz
f9f7e5e9da9de2f2258ae1b36e22e59faf950c7110de869c3581f7a89cd6dfdc96aa4db06a4ceca0ac016e8adbeb1e3bca3da66a565aec8a1ddf2808e93897c2  psad.initd
a80666f59356cc6157a9f5dca132991d4f1e0afda8f673d602de2557219d5521bec9ae148330e98d9483175d14d96e4cc2ccd11541d8b187b0e47f44ba4ada54  psad.confd"
-- 
2.6.3



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---

[alpine-aports] [PATCH 2/4] testing/perl-iptables-chainmgr: update to 1.4

Details
Message ID
<1449393709-11132-2-git-send-email-developer@it-offshore.co.uk>
In-Reply-To
<1449393709-11132-1-git-send-email-developer@it-offshore.co.uk> (view parent)
Sender timestamp
1449393707
DKIM signature
missing
Download raw message
Patch: +5 -5
---
 testing/perl-iptables-chainmgr/APKBUILD | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/testing/perl-iptables-chainmgr/APKBUILD b/testing/perl-iptables-chainmgr/APKBUILD
index 55ea943..f51bd46 100644
--- a/testing/perl-iptables-chainmgr/APKBUILD
+++ b/testing/perl-iptables-chainmgr/APKBUILD
@@ -3,14 +3,14 @@
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=perl-iptables-chainmgr
_pkgreal=IPTables-ChainMgr
pkgver=1.3
pkgver=1.4
pkgrel=0
pkgdesc="Perl extension for manipulating iptables and ip6tables policies"
url="http://search.cpan.org/dist/IPTables-ChainMgr/"
arch="noarch"
license="artistic_1"
cpandepends="perl-netaddr-ip perl-iptables-parse"
cpanmakedepends="   "
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
@@ -36,6 +36,6 @@ package() {
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="f5ff3a84503707782e38362bdc7b8b67  IPTables-ChainMgr-1.3.tar.gz"
sha256sums="ec986c4823a9059ba785a04ebaba80d76ef42140eed6008463bc9d835645d673  IPTables-ChainMgr-1.3.tar.gz"
sha512sums="88ecd8ee9e21bdea402581ed456d1ea8e6845ebb034f979ba6cfd9528199b6899c1fc8ed1767ba1756565f8b4bfb3d3a364dae2d0d668861418f2a2def5596c3  IPTables-ChainMgr-1.3.tar.gz"
md5sums="f322a583ef49c82c0807237542ed5f35  IPTables-ChainMgr-1.4.tar.gz"
sha256sums="91041681d0635340dc1d1f360ea63a37fddf17eeed7984e506e078cadb622a66  IPTables-ChainMgr-1.4.tar.gz"
sha512sums="1175ca8b16df1ba6c7b16b2bf8b17afa8d860af1dd6b39397dd79d754c1eddc22f8ba5bfe0d78785a18086260b5b9fab1c855e85054c8a6188caf90f7e4dd03e  IPTables-ChainMgr-1.4.tar.gz"
-- 
2.6.3



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---

[alpine-aports] [PATCH 4/4] testing/whois: new aport

Details
Message ID
<1449393709-11132-4-git-send-email-developer@it-offshore.co.uk>
In-Reply-To
<1449393709-11132-1-git-send-email-developer@it-offshore.co.uk> (view parent)
Sender timestamp
1449393709
DKIM signature
missing
Download raw message
Patch: +31 -0
Marco d'Itri's whois client.
---
 testing/whois/APKBUILD | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 testing/whois/APKBUILD

diff --git a/testing/whois/APKBUILD b/testing/whois/APKBUILD
new file mode 100644
index 0000000..bc7267b
--- /dev/null
+++ b/testing/whois/APKBUILD
@@ -0,0 +1,31 @@
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=whois
pkgver=5.2.10
pkgrel=0
pkgdesc="Intelligent WHOIS client by Marco d'Itri"
url="http://www.linux.it/~md/software/"
arch="all"
license="GPLv2"
makedepends="$depends_dev perl libidn-dev gettext-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/rfc1036/$pkgname/archive/v$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$_builddir"
	make CONFIG_FILE="/etc/whois.conf" \
	HAVE_LIBIDN=1 HAVE_ICONV=1 \
	CFLAGS="$CFLAGS -lintl $CXXFLAGS" || return 1
}

package() {
	cd "$_builddir"
	make BASEDIR="$pkgdir" install-whois || return 1
	install -D -m644 whois.conf "$pkgdir/etc/whois.conf"
}

md5sums="19579468bdb311eed5c6b8c3216cce1b  whois-5.2.10.tar.gz"
sha256sums="8169bead001fb68d14f09a49c117d3408d48a3378f3a67eb0e56848a637ad54e  whois-5.2.10.tar.gz"
sha512sums="c3280d62329035c12cc69dd45986d32fd9c858efa9b2d8674cb8208429c1eb35dfcb50aaab442215e5c3321cbb1fc4ecabff7058c38da2db8fb5f0aac61429c2  whois-5.2.10.tar.gz"
-- 
2.6.3



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)