diff options
Diffstat (limited to 'community/osiris')
-rw-r--r-- | community/osiris/ChangeLog | 3 | ||||
-rw-r--r-- | community/osiris/PKGBUILD | 40 | ||||
-rw-r--r-- | community/osiris/osiris.install | 23 | ||||
-rwxr-xr-x | community/osiris/osirisd.init | 35 | ||||
-rwxr-xr-x | community/osiris/osirismd.init | 35 |
5 files changed, 136 insertions, 0 deletions
diff --git a/community/osiris/ChangeLog b/community/osiris/ChangeLog new file mode 100644 index 000000000..811f87d4f --- /dev/null +++ b/community/osiris/ChangeLog @@ -0,0 +1,3 @@ +2007-06-28 tardo <tardo@nagi-fanboi.net> +* Built for x86_64 + diff --git a/community/osiris/PKGBUILD b/community/osiris/PKGBUILD new file mode 100644 index 000000000..7ce3b4ea5 --- /dev/null +++ b/community/osiris/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 14260 2010-04-02 09:55:31Z spupykin $ +# Contributor: jlvsimoes + +pkgname=osiris +pkgver=4.2.3 +pkgrel=3 +pkgdesc="A file integrity management system" +arch=('i686' 'x86_64') +url="http://osiris.shmoo.com/" +license=('custom') +depends=('openssl' 'readline') +install=$pkgname.install +source=(http://osiris.shmoo.com/data/osiris-$pkgver.tar.gz \ + osirismd.init \ + osirisd.init) +md5sums=('1951c7dc0fe729af9ffaf58910340d12' + '44281b8fc30ab3d452c6f35d3539d7ff' + 'b859445803e4df59a4f82d7f411e1297') + +build() +{ + cd $startdir/src/$pkgname-$pkgver + mkdir -p $startdir/pkg/usr/share/licenses/$pkgname/ + install -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/license.txt + mkdir -p $startdir/pkg/etc/rc.d + + ./configure --prefix=/usr --enable-fancy-cli --with-md-root-dir=/usr/share/$pkgname + make all || return 1 + + # Arch-ify install locations + sed -i "s|^INSTALL_OSIRISM=0|INSTALL_OSIRISM=1|" src/install/install.sh + sed -i "s|^INSTALL_OSIRISD=0|INSTALL_OSIRISD=1|" src/install/install.sh + sed -i "s|^ROOT_GROUP=wheel|ROOT_GROUP=root|" src/install/install.sh + + make DESTDIR=$startdir/pkg install || return 1 + + install -D -m755 $startdir/src/osirismd.init $startdir/pkg/etc/rc.d/osirismd && \ + install -D -m755 $startdir/src/osirisd.init $startdir/pkg/etc/rc.d/osirisd && \ + rm -rf $startdir/pkg/usr/osiris +} diff --git a/community/osiris/osiris.install b/community/osiris/osiris.install new file mode 100644 index 000000000..5b139f45f --- /dev/null +++ b/community/osiris/osiris.install @@ -0,0 +1,23 @@ +post_install() { + if [ ! `/bin/grep osiris /etc/group` ]; then + /usr/sbin/groupadd -g 18 osiris &>/dev/null; + fi + + /usr/bin/id osiris &>/dev/null || \ + /usr/sbin/useradd -u 18 -g osiris -d /var/lib/osiris -s /bin/false osiris +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + /usr/sbin/userdel osiris &> /dev/null + /usr/sbin/groupdel osiris &> /dev/null +} + +post_remove() { + /bin/true +} + +# vim: ts=2 sw=2 et ft=sh diff --git a/community/osiris/osirisd.init b/community/osiris/osirisd.init new file mode 100755 index 000000000..d38255621 --- /dev/null +++ b/community/osiris/osirisd.init @@ -0,0 +1,35 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +LOCKFILE=/var/run/osirisd.lock + +case "$1" in + start) + stat_busy "Starting Osiris Scanning Daemon" + [ ! -f $LOCKFILE ] && [ ! $UID = 0 ] && /usr/sbin/osirisd && touch $LOCKFILE + if [ $? -gt 0 ]; then + stat_fail + else + stat_done + fi + ;; + stop) + stat_busy "Stopping Osiris Scanning Daemon" + [ -f $LOCKFILE ] && rm $LOCKFILE && killall osirisd + if [ $? -gt 0 ]; then + stat_fail + else + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/community/osiris/osirismd.init b/community/osiris/osirismd.init new file mode 100755 index 000000000..3b9e38598 --- /dev/null +++ b/community/osiris/osirismd.init @@ -0,0 +1,35 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +LOCKFILE=/var/run/osirismd.lock + +case "$1" in + start) + stat_busy "Starting Osiris Management Daemon" + [ ! -f $LOCKFILE ] && [ ! $UID = 0 ] && touch $LOCKFILE && /usr/sbin/osirismd + if [ $? -gt 0 ]; then + stat_fail + else + stat_done + fi + ;; + stop) + stat_busy "Stopping Osiris Management Daemon" + [ -f $LOCKFILE ] && rm $LOCKFILE && killall osirismd + if [ $? -gt 0 ]; then + stat_fail + else + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 |