aboutsummaryrefslogtreecommitdiff
path: root/network/tinc/tinc.SlackBuild
diff options
context:
space:
mode:
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 8ad0977380c6b..a0b5955ed707c 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}