summaryrefslogtreecommitdiff
path: root/network/tinc/tinc.SlackBuild
diff options
context:
space:
mode:
authorKevin Scranton <kevin@nwabytes.com>2017-09-10 13:18:24 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-09-10 13:22:44 +0700
commit6007ad68616fee231d8284f4c0bc2a6b2e00800a (patch)
tree96c250a3bc919b4e067b6eb8ecdfd23bd8142ad3 /network/tinc/tinc.SlackBuild
parenta71fcd77144c187a70ae34d8829ff5e2bbe8b6d6 (diff)
downloadslackbuilds-6007ad68616fee231d8284f4c0bc2a6b2e00800a.tar.gz
network/tinc: Updated for version 1.0.32.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/tinc/tinc.SlackBuild')
-rw-r--r--network/tinc/tinc.SlackBuild11
1 files changed, 10 insertions, 1 deletions
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}