summaryrefslogtreecommitdiff
path: root/network/krb5/krb5.SlackBuild
diff options
context:
space:
mode:
authorJason Graham <jgraha8@gmail.com>2017-12-31 14:12:58 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-01 20:28:37 +0700
commit8014473bdffce919d5a4a29dd73822c47792c82e (patch)
tree8fb80ab6bf444b3371eaf8e345c0ac7593f20517 /network/krb5/krb5.SlackBuild
parenta859d2ecd62d0f6210d0fdb7627ed6df8d1ce069 (diff)
downloadslackbuilds-8014473bdffce919d5a4a29dd73822c47792c82e.tar.gz
network/krb5: Added krb5kdc and kadmind init scripts.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/krb5/krb5.SlackBuild')
-rw-r--r--network/krb5/krb5.SlackBuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/network/krb5/krb5.SlackBuild b/network/krb5/krb5.SlackBuild
index 6b116ee0ad..cfe808c9b9 100644
--- a/network/krb5/krb5.SlackBuild
+++ b/network/krb5/krb5.SlackBuild
@@ -87,6 +87,11 @@ make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# Add init scripts
+mkdir -p $PKG/etc/rc.d
+cat $CWD/rc.krb5kdc > $PKG/etc/rc.d/rc.krb5kdc.new
+cat $CWD/rc.kadmind > $PKG/etc/rc.d/rc.kadmind.new
+
rm -rf $PKG/usr/man/cat{1,5,8}
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
@@ -99,6 +104,7 @@ find $PKG/usr/doc -type f -exec chmod 0644 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}