From 6007ad68616fee231d8284f4c0bc2a6b2e00800a Mon Sep 17 00:00:00 2001
From: Kevin Scranton <kevin@nwabytes.com>
Date: Sun, 10 Sep 2017 13:18:24 +0700
Subject: network/tinc: Updated for version 1.0.32.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
---
 network/tinc/tinc.SlackBuild | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

(limited to 'network/tinc/tinc.SlackBuild')

diff --git a/network/tinc/tinc.SlackBuild b/network/tinc/tinc.SlackBuild
index 8ad0977380..a0b5955ed7 100644
--- a/network/tinc/tinc.SlackBuild
+++ b/network/tinc/tinc.SlackBuild
@@ -32,7 +32,7 @@
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 PRGNAM=tinc
-VERSION=${VERSION:-1.0.31}
+VERSION=${VERSION:-1.0.32}
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 
@@ -101,11 +101,20 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 cp -a  README  $PKG/usr/doc/$PRGNAM-$VERSION
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
+# Add an init script
+mkdir -p $PKG/etc/rc.d
+cat $CWD/rc.$PRGNAM > $PKG/etc/rc.d/rc.$PRGNAM.new
+chmod 0644 $PKG/etc/rc.d/rc.$PRGNAM.new
+
+mkdir -p $PKG/etc/logrotate.d
+cat $CWD/$PRGNAM.logrotate > $PKG/etc/logrotate.d/$PRGNAM.new
+
 find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
 find $PKG/usr/doc/$PRGNAM-$VERSION -type d -exec chmod 755 {} \;
 
 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}
-- 
cgit v1.2.3