summaryrefslogtreecommitdiffstats
path: root/sendxmpp
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2007-03-27 13:18:57 +0000
committer Eric Hameleers <alien@slackware.com>2007-03-27 13:18:57 +0000
commit6adc807aec37980848ec2a51687eb005f86f123f (patch)
tree68eb8bce4144196de3a90b928f6296cc42f1f1f3 /sendxmpp
parentfd5aa0197aafccd2ff5e91eade2e1bcdbbbf95f7 (diff)
downloadasb-6adc807aec37980848ec2a51687eb005f86f123f.tar.gz
asb-6adc807aec37980848ec2a51687eb005f86f123f.tar.xz
Initial revision
Diffstat (limited to 'sendxmpp')
-rwxr-xr-xsendxmpp/build/sendxmpp.SlackBuild54
-rw-r--r--sendxmpp/build/slack-desc19
2 files changed, 73 insertions, 0 deletions
diff --git a/sendxmpp/build/sendxmpp.SlackBuild b/sendxmpp/build/sendxmpp.SlackBuild
new file mode 100755
index 00000000..20467580
--- /dev/null
+++ b/sendxmpp/build/sendxmpp.SlackBuild
@@ -0,0 +1,54 @@
+#!/bin/sh
+#
+# This module requires Getopt::Long and Net::XMPP
+#
+CWD=`pwd`
+PRGNAM=sendxmpp
+PKG=/tmp/package-$PRGNAM
+TMP=/tmp
+
+VERSION=0.0.6
+ARCH=${ARCH:-i486}
+BUILD=1
+
+rm -rf $PKG
+rm -rf /tmp/tmp-$PRGNAM
+mkdir -p $PKG
+mkdir -p /tmp/tmp-$PRGNAM
+
+cd /tmp/tmp-$PRGNAM
+tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root.root .
+perl Makefile.PL
+make
+
+mkdir -p $PKG/usr
+installwatch -o $CWD/install.log make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+( cd $PKG
+ # Remove 'special' files
+ find . -name perllocal.pod \
+ -o -name ".packlist" \
+ -o -name "*.bs" \
+ | xargs rm -f
+ # No empty directories
+ find . -type d -depth -exec rmdir {} \; 2>/dev/null
+)
+
+DOC="Changes MANIFEST README"
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOC $PKG/usr/doc/$PRGNAM-$VERSION
+chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*
+gzip -9 $PKG/usr/man/*/*
+gzip -9 $PKG/usr/share/man/*/*
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+makepkg -l y -c n ../$PRGNAM-$VERSION-$ARCH-$BUILD.tgz
+
diff --git a/sendxmpp/build/slack-desc b/sendxmpp/build/slack-desc
new file mode 100644
index 00000000..150d136b
--- /dev/null
+++ b/sendxmpp/build/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+sendxmpp: sendxmpp (send xmpp -jabber- messages from the command line)
+sendxmpp:
+sendxmpp: sendxmpp is a perl-script to send xmpp (jabber), similar to what
+sendxmpp: mail(1) does for mail.
+sendxmpp: Obviously, you also need a jabber account; they are freely available
+sendxmpp: at jabber.org, but you can also run your own server.
+sendxmpp:
+sendxmpp:
+sendxmpp:
+sendxmpp: sendxmpp home is http://www.djcbsoftware.nl/code/sendxmpp/
+sendxmpp: