# snort, http://www.snort.org

name=snort
version=1.8.7
source=($name-$version.tar.gz)

build() {
    cd $name-$version
    ./configure --prefix=/usr --sysconfdir=/etc \
    --localstatedir=/var/lib --build=i386-root-linux \
    --with-mysql=/usr
    make
    make DESTDIR=$PKG install
    strip $PKG/usr/bin/*
    strip $PKG/usr/sbin/*
    gzip -9 $PKG/usr/man/man?/*
    rm -f $PKG/usr/info/dir
    gzip -9 $PKG/usr/info/*
    mkdir -p $PKG/etc/snort
    cp snort.conf $PKG/etc/snort
    chown root.root $PKG/etc/snort/snort.conf
    chmod 644 $PKG/etc/snort/snort.conf
}
