summaryrefslogtreecommitdiff
path: root/community/osiris
diff options
context:
space:
mode:
Diffstat (limited to 'community/osiris')
-rw-r--r--community/osiris/ChangeLog3
-rw-r--r--community/osiris/PKGBUILD49
-rw-r--r--community/osiris/osiris.install17
-rw-r--r--community/osiris/osirisd.service10
-rw-r--r--community/osiris/osirismd.service10
5 files changed, 89 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..163ed50ab
--- /dev/null
+++ b/community/osiris/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 91866 2013-05-28 17:38:40Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: jlvsimoes
+
+pkgname=osiris
+pkgver=4.2.3
+pkgrel=7
+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
+source=(http://arch.p5n.pp.ru/~sergej/dl/2011/osiris-$pkgver.tar.gz
+ osirismd.service
+ osirisd.service)
+md5sums=('1951c7dc0fe729af9ffaf58910340d12'
+ '8398d60bcbf0c90034473365abc3ece6'
+ '758d029a1ff53be11756330de595e77f')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ sed -i "s|/sbin|/bin|g" src/install/install.sh.in
+
+ ./configure --prefix=/usr --sbindir=/usr/bin \
+ --enable-fancy-cli --with-md-root-dir=/usr/share/$pkgname
+ make all
+
+ # 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
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+
+ mkdir -p $pkgdir/usr/share/licenses/$pkgname/
+ install -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/license.txt
+
+ make DESTDIR=$pkgdir install
+
+ rm -rf $pkgdir/usr/osiris $pkgdir/etc/init.d
+
+ install -Dm0644 $srcdir/osirisd.service $pkgdir/usr/lib/systemd/system/osirisd.service
+ install -Dm0644 $srcdir/osirismd.service $pkgdir/usr/lib/systemd/system/osirismd.service
+}
diff --git a/community/osiris/osiris.install b/community/osiris/osiris.install
new file mode 100644
index 000000000..24497d8fd
--- /dev/null
+++ b/community/osiris/osiris.install
@@ -0,0 +1,17 @@
+post_install() {
+ if [ ! `grep osiris etc/group` ]; then
+ groupadd -g 18 osiris &>/dev/null;
+ fi
+
+ id osiris &>/dev/null || \
+ useradd -u 18 -g osiris -d /var/lib/osiris -s /bin/false osiris
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ userdel osiris &> /dev/null
+ groupdel osiris &> /dev/null
+}
diff --git a/community/osiris/osirisd.service b/community/osiris/osirisd.service
new file mode 100644
index 000000000..3b162160f
--- /dev/null
+++ b/community/osiris/osirisd.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=A file integrity management system
+
+[Service]
+User=osiris
+Type=forking
+ExecStart=/usr/bin/osirisd
+
+[Install]
+WantedBy=multi-user.target
diff --git a/community/osiris/osirismd.service b/community/osiris/osirismd.service
new file mode 100644
index 000000000..ec4c40702
--- /dev/null
+++ b/community/osiris/osirismd.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=A file integrity management system
+
+[Service]
+User=osiris
+Type=forking
+ExecStart=/usr/bin/osirismd
+
+[Install]
+WantedBy=multi-user.target