|
|
selinux? ( sec-policy/selinux-snort ) | selinux? ( sec-policy/selinux-snort ) |
snortsam? ( net-analyzer/snortsam )" | snortsam? ( net-analyzer/snortsam )" |
| |
|
pkg_setup() { |
|
enewgroup snort |
|
enewuser snort -1 /bin/false /dev/null snort |
|
echo "ignore any message about CREATE_HOME above..." |
|
} |
|
|
src_unpack() { | src_unpack() { |
unpack ${A} | unpack ${A} |
cd ${S} | cd ${S} |
|
|
emake || die "compile problem" | emake || die "compile problem" |
} | } |
| |
pkg_preinst() { |
|
enewgroup snort |
|
enewuser snort -1 /bin/false /var/log/snort snort |
|
usermod -d "/var/log/snort" snort || die "usermod problem" |
|
usermod -g "snort" snort || die "usermod problem" |
|
usermod -s "/bin/false" snort || die "usermod problem" |
|
echo "ignore any message about CREATE_HOME above..." |
|
} |
|
|
|
src_install() { | src_install() { |
make DESTDIR="${D}" install || die "make install failed" | make DESTDIR="${D}" install || die "make install failed" |
| |