diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-12-24 20:29:52 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-12-25 12:17:37 -0300 |
commit | a850d3d993bf94cfa5e2892a234fa2dafda55310 (patch) | |
tree | 45c477d23a112bbb3defc80e50308409ad349935 /pcr/snort | |
parent | d9cc39e8c02c22c84722e80d9d2b2bb6cc6b210c (diff) |
snort rebuild with a new service file
Diffstat (limited to 'pcr/snort')
-rw-r--r-- | pcr/snort/PKGBUILD | 16 | ||||
-rw-r--r-- | pcr/snort/snort.service | 10 | ||||
-rw-r--r-- | pcr/snort/snort@.service | 10 |
3 files changed, 18 insertions, 18 deletions
diff --git a/pcr/snort/PKGBUILD b/pcr/snort/PKGBUILD index c7cf8772f..8ab0931ee 100644 --- a/pcr/snort/PKGBUILD +++ b/pcr/snort/PKGBUILD @@ -8,7 +8,7 @@ pkgname=snort pkgver=2.9.7.0 -pkgrel=1 +pkgrel=3 pkgdesc='A lightweight network intrusion detection system.' arch=('i686' 'x86_64' 'mips64el') url='http://www.snort.org' @@ -20,18 +20,15 @@ backup=('etc/snort/snort.conf' 'etc/snort/classification.config') options=('!makeflags' '!libtool') install='snort.install' -source=("http://www.${pkgname}.org/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz" +source=("https://www.snort.org/downloads/snort/${pkgname}-${pkgver}.tar.gz" "http://rules.emergingthreats.net/open/${pkgname}-2.9.0/emerging.rules.tar.gz" - 'snort.service') -md5sums=('c2a45bc56441ee9456478f219dd8d1e2' - '183bf888ede30967ac0ebc3f046097cf' - '43ed16fd3906854528a62a58f88f7227') + 'snort@.service') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr --sysconfdir=/etc/snort --with-libpcap-includes=/usr/include/pcap \ --with-daq-includes=/usr/include --with-daq-libraries=/usr/lib/ \ - --enable-zlib --disable-static-daq + --disable-static-daq make } @@ -46,7 +43,7 @@ package() { install -D -m644 etc/{*.conf*,*.map} "${pkgdir}/etc/snort/" # init service file - install -D -m644 ../snort.service $pkgdir/usr/lib/systemd/system/snort.service + install -D -m644 ../snort@.service $pkgdir/usr/lib/systemd/system/snort@.service sed -i 's#/usr/local/lib/#/usr/lib/#' "${pkgdir}/etc/snort/snort.conf" @@ -55,3 +52,6 @@ package() { cp ${srcdir}/rules/* "${pkgdir}/etc/snort/rules" } +md5sums=('c2a45bc56441ee9456478f219dd8d1e2' + 'SKIP' + '49c7e8dbde680322ff5c4e0883f2b908') diff --git a/pcr/snort/snort.service b/pcr/snort/snort.service deleted file mode 100644 index 4d02428f8..000000000 --- a/pcr/snort/snort.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Snort IDS system listening on '%I' - -[Service] -Type=simple -ExecStartPre=/usr/bin/ip link set up dev %I -ExecStart=/usr/bin/snort -A fast -b -p -u snort -g snort -c /etc/snort/snort.conf -i %I - -[Install] -Alias=multi-user.target.wants/snort@eth0.service diff --git a/pcr/snort/snort@.service b/pcr/snort/snort@.service new file mode 100644 index 000000000..b78d543d4 --- /dev/null +++ b/pcr/snort/snort@.service @@ -0,0 +1,10 @@ +[Unit] +Description=Snort IDS system listening on '%I' + +[Service] +Type=simple +ExecStartPre=/usr/sbin/ip link set up dev %I +ExecStart=/usr/bin/snort --daq-dir /usr/lib/daq/ -A fast -b -p -u snort -g snort -c /etc/snort/snort.conf -i %I + +[Install] +Alias=multi-user.target.wants/snort@eth0.service |