diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-17 00:05:58 +0200 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-09-16 19:44:44 -0400 |
commit | 5635c60b897c4bedbc79b22648ee9e8377c76d3d (patch) | |
tree | 958e2b14fda49968f54f8281db42f399b03cddbd /network/tntnet/tntnet.SlackBuild | |
parent | 6b513bedf346653bb7d8a9898e74e7995e136210 (diff) | |
download | slackbuilds-5635c60b897c4bedbc79b22648ee9e8377c76d3d.tar.gz |
network/tntnet: Updated for version 2.1, various cleanups.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/tntnet/tntnet.SlackBuild')
-rw-r--r-- | network/tntnet/tntnet.SlackBuild | 10 |
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 |