summaryrefslogtreecommitdiff
path: root/network/tntnet/tntnet.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/tntnet/tntnet.SlackBuild')
-rw-r--r--network/tntnet/tntnet.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/network/tntnet/tntnet.SlackBuild b/network/tntnet/tntnet.SlackBuild
index d4c1c84929..467f0d8beb 100644
--- a/network/tntnet/tntnet.SlackBuild
+++ b/network/tntnet/tntnet.SlackBuild
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=tntnet
-VERSION=${VERSION:-2.0}
+VERSION=${VERSION:-2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -58,7 +58,7 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-#rm -rf $PRGNAM-$VERSION
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
@@ -85,6 +85,12 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+mv $PKG/etc/$PRGNAM/mime.conf{,.new}
+mv $PKG/etc/$PRGNAM/$PRGNAM.conf{,.new}
+sed -i "s|www-data|apache|" $PKG/etc/$PRGNAM/$PRGNAM.conf.new
+install -m 0755 -D $PKG/etc/init.d/$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM.new
+rm -fr $PKG/etc/init.d
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true