diff options
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/snort/PKGBUILD | 57 | ||||
-rw-r--r-- | pcr/snort/snort.install | 26 | ||||
-rw-r--r-- | pcr/snort/snort@.service | 10 |
3 files changed, 0 insertions, 93 deletions
diff --git a/pcr/snort/PKGBUILD b/pcr/snort/PKGBUILD deleted file mode 100644 index 10728c51b..000000000 --- a/pcr/snort/PKGBUILD +++ /dev/null @@ -1,57 +0,0 @@ -# Maintainer (Arch): M0Rf30 -# Contributor (Arch): Lukas Fleischer <archlinux at cryptocrack dot de> -# Contributor (Arch): Hugo Doria <hugo@archlinux.org> -# Contributor (Arch): Kessia 'even' Pinheiro <kessiapinheiro at gmail.com> -# Contributor (Arch): dorphell <dorphell@archlinux.org> -# Contributor (Arch): Gregor Ibic <gregor.ibic@intelicom.si> -# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> - -pkgname=snort -pkgver=2.9.9.0 -pkgrel=1 -pkgdesc='A lightweight network intrusion detection system.' -arch=('i686' 'x86_64') -url='http://www.snort.org' -license=('GPL') -depends=('libdaq' 'libdnet' 'libpcap' 'openssl' 'pcre' 'zlib') -backup=('etc/snort/snort.conf' - 'etc/snort/threshold.conf' - 'etc/snort/reference.config' - 'etc/snort/classification.config' - 'etc/snort/rules/emerging.conf') -options=('!makeflags' '!libtool') -install='snort.install' -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') -sha512sums=('2c17539c80484c90198a2e5d5efd1e70f26afb79ce7c28e745ded356b6f1a1f97763ff21fde986652af1768fa3bcdafbbcc3c82ee8ad6d2ef0471f360cfcab83' - 'f4aa3f4b511bbdfd8385ef147c58dda56f0765b9e7bdda0dffe22ca3178f21536fd4999c372985bdc3b8d7a27f61547c792931a5e2440ef071a11b873f063e7a' - '4eed55f2c8071fd20b132dd6340de8f9066ad52d592212b8d5ba4f89cea488cf8425555bccf160c32502915c0f585aa68dd955c461524898b5ce2cb3c6e6e3c3') - -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/daq/ \ - --disable-static-daq - make -} - -package() { - cd "${srcdir}/${pkgname}-${pkgver}" - - make DESTDIR="${pkgdir}" install - - mkdir -p "${pkgdir}/"{etc/rc.d,etc/snort/rules} - - install -d -m755 "${pkgdir}/var/log/snort" - install -D -m644 etc/{*.conf*,*.map} "${pkgdir}/etc/snort/" - -# init service file - 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" - -# emerginthreats rules - echo 'include $RULE_PATH/emerging.conf' >> "${pkgdir}/etc/snort/snort.conf" - cp ${srcdir}/rules/* "${pkgdir}/etc/snort/rules" -} diff --git a/pcr/snort/snort.install b/pcr/snort/snort.install deleted file mode 100644 index 673f22c6c..000000000 --- a/pcr/snort/snort.install +++ /dev/null @@ -1,26 +0,0 @@ -post_install() { - getent group snort >/dev/null || usr/sbin/groupadd -g 29 snort - getent passwd snort >/dev/null || usr/sbin/useradd -c 'Snort user' -u 29 -g snort -d /var/log/snort -s /bin/false snort - usr/bin/passwd -l snort &>/dev/null - - [ -f var/log/snort/alert ] || : >var/log/snort/alert - chown snort.snort var/log/snort/ -R - -cat << _EOF - ->>> You have to edit the HOME_NET variable in the /etc/snort/snort.conf file to reflect your local network. ->>> If you do not change it, snort may not work. - -_EOF -} - -post_upgrade() { - post_install $1 -} - -pre_remove() { - usr/sbin/userdel snort &>/dev/null - usr/sbin/groupdel snort &>/dev/null -} - -# vim:set ts=2 sw=2 et: diff --git a/pcr/snort/snort@.service b/pcr/snort/snort@.service deleted file mode 100644 index 002818ca9..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/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@%i.service |