From f6499eb8393ebb1de5ccefe4356053035b090acb Mon Sep 17 00:00:00 2001 From: rudson Date: Wed, 15 Nov 2006 23:40:22 +0000 Subject: movendo libs... git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@685 370017ae-e619-0410-ac65-c121f96126d4 --- apps/editors/nano/nano.SlackBuild | 106 ++++++++++++ mail/mta/postfix/postfix-anon-2.2.10.diff | 66 +++++++ mail/mta/postfix/postfix-anon-2.2.3.diff | 63 +++++++ mail/mta/postfix/postfix.SlackBuild | 191 +++++++++++++++++++++ mail/mta/postfix/script_postfix.tgz | Bin 0 -> 1182 bytes mail/mta/postfix/slack-desc | 20 +++ mail/mta/postfix/slack-required | 5 + media/libs/openexr/openexr.SlackBuild | 124 +++++++++++++ nano/nano.SlackBuild | 106 ------------ net/chat/bitlbee/bitlbee.SlackBuild | 132 -------------- net/chat/bitlbee/slack-required | 2 - net/chat/ekiga/ekiga.SlackBuild | 119 ------------- net/chat/ekiga/slack-required | 3 - net/chat/lirc/lirc.SlackBuild | 122 ------------- net/im/bitlbee/bitlbee.SlackBuild | 132 ++++++++++++++ net/im/bitlbee/slack-required | 2 + net/im/ekiga/ekiga.SlackBuild | 119 +++++++++++++ net/im/ekiga/slack-required | 3 + net/im/lirc/lirc.SlackBuild | 122 +++++++++++++ net/libs/opal/opal.SlackBuild | 111 ++++++++++++ net/libs/opal/slack-required | 1 + net/nds/openldap/openldap-client.SlackBuild | 123 +++++++++++++ net/nds/openldap/openldap.SlackBuild | 135 +++++++++++++++ net/p2p/nicotine/nicotine+.SlackBuild | 30 ++++ net/p2p/nicotine/nicotine+.build | 96 +++++++++++ net/p2p/nicotine/nicotine.SlackBuild | 42 +++++ net/p2p/nicotine/nicotine.build | 94 ++++++++++ net/p2p/nicotine/slack-required | 1 + net/www/nspluginwrapper/nspluginwrapper.SlackBuild | 121 +++++++++++++ nicotine/nicotine+.SlackBuild | 30 ---- nicotine/nicotine+.build | 96 ----------- nicotine/nicotine.SlackBuild | 42 ----- nicotine/nicotine.build | 94 ---------- nicotine/slack-required | 1 - nspluginwrapper/nspluginwrapper.SlackBuild | 121 ------------- opal/opal.SlackBuild | 111 ------------ opal/slack-required | 1 - openexr/openexr.SlackBuild | 124 ------------- openldap/openldap-client.SlackBuild | 123 ------------- openldap/openldap.SlackBuild | 135 --------------- postfix/postfix-anon-2.2.10.diff | 66 ------- postfix/postfix-anon-2.2.3.diff | 63 ------- postfix/postfix.SlackBuild | 191 --------------------- postfix/script_postfix.tgz | Bin 1182 -> 0 bytes postfix/slack-desc | 20 --- postfix/slack-required | 5 - 46 files changed, 1707 insertions(+), 1707 deletions(-) create mode 100755 apps/editors/nano/nano.SlackBuild create mode 100644 mail/mta/postfix/postfix-anon-2.2.10.diff create mode 100644 mail/mta/postfix/postfix-anon-2.2.3.diff create mode 100755 mail/mta/postfix/postfix.SlackBuild create mode 100644 mail/mta/postfix/script_postfix.tgz create mode 100644 mail/mta/postfix/slack-desc create mode 100644 mail/mta/postfix/slack-required create mode 100755 media/libs/openexr/openexr.SlackBuild delete mode 100755 nano/nano.SlackBuild delete mode 100755 net/chat/bitlbee/bitlbee.SlackBuild delete mode 100644 net/chat/bitlbee/slack-required delete mode 100755 net/chat/ekiga/ekiga.SlackBuild delete mode 100644 net/chat/ekiga/slack-required delete mode 100755 net/chat/lirc/lirc.SlackBuild create mode 100755 net/im/bitlbee/bitlbee.SlackBuild create mode 100644 net/im/bitlbee/slack-required create mode 100755 net/im/ekiga/ekiga.SlackBuild create mode 100644 net/im/ekiga/slack-required create mode 100755 net/im/lirc/lirc.SlackBuild create mode 100755 net/libs/opal/opal.SlackBuild create mode 100644 net/libs/opal/slack-required create mode 100755 net/nds/openldap/openldap-client.SlackBuild create mode 100755 net/nds/openldap/openldap.SlackBuild create mode 100755 net/p2p/nicotine/nicotine+.SlackBuild create mode 100755 net/p2p/nicotine/nicotine+.build create mode 100755 net/p2p/nicotine/nicotine.SlackBuild create mode 100755 net/p2p/nicotine/nicotine.build create mode 100644 net/p2p/nicotine/slack-required create mode 100755 net/www/nspluginwrapper/nspluginwrapper.SlackBuild delete mode 100755 nicotine/nicotine+.SlackBuild delete mode 100755 nicotine/nicotine+.build delete mode 100755 nicotine/nicotine.SlackBuild delete mode 100755 nicotine/nicotine.build delete mode 100644 nicotine/slack-required delete mode 100755 nspluginwrapper/nspluginwrapper.SlackBuild delete mode 100755 opal/opal.SlackBuild delete mode 100644 opal/slack-required delete mode 100755 openexr/openexr.SlackBuild delete mode 100755 openldap/openldap-client.SlackBuild delete mode 100755 openldap/openldap.SlackBuild delete mode 100644 postfix/postfix-anon-2.2.10.diff delete mode 100644 postfix/postfix-anon-2.2.3.diff delete mode 100755 postfix/postfix.SlackBuild delete mode 100644 postfix/script_postfix.tgz delete mode 100644 postfix/slack-desc delete mode 100644 postfix/slack-required diff --git a/apps/editors/nano/nano.SlackBuild b/apps/editors/nano/nano.SlackBuild new file mode 100755 index 00000000..0d164d87 --- /dev/null +++ b/apps/editors/nano/nano.SlackBuild @@ -0,0 +1,106 @@ +#!/bin/bash +# +# slackbuild script for nano +# by rhatto at riseup.net +# + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="nano" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=1.2.5} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://www.nano-editor.org/dist/v1.2/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff +fi + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > install/slack-desc +# 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-----------------------------------------------------| +nano: nano (GNU Nano editor) +nano: +nano: GNU nano (Nano's ANOther editor, or Not ANOther editor) is an +nano: enhanced clone of the Pico text editor. +nano: +nano: +nano: +nano: +nano: +nano: +nano: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO UPGRADE; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/mail/mta/postfix/postfix-anon-2.2.10.diff b/mail/mta/postfix/postfix-anon-2.2.10.diff new file mode 100644 index 00000000..056c2200 --- /dev/null +++ b/mail/mta/postfix/postfix-anon-2.2.10.diff @@ -0,0 +1,66 @@ +diff -Naur no_alter/postfix-2.2.10/src/smtpd/smtpd.c postfix-2.2.10/src/smtpd/smtpd.c +--- no_alter/postfix-2.2.10/src/smtpd/smtpd.c 2005-11-28 20:32:41.000000000 -0200 ++++ postfix-2.2.10/src/smtpd/smtpd.c 2006-06-07 16:51:59.000000000 -0300 +@@ -858,6 +858,7 @@ + char *var_smtpd_sasl_appname; + char *var_smtpd_sasl_realm; + char *var_smtpd_sasl_exceptions_networks; ++int sasl_authenticated; + char *var_filter_xport; + bool var_broken_auth_clients; + char *var_perm_mx_networks; +@@ -1945,10 +1946,14 @@ + * intermediate proxy. + */ + if (!state->proxy || state->xforward.flags == 0) { ++ if (sasl_authenticated == 1) { ++ out_fprintf(out_stream, REC_TYPE_NORM, "Received: from localhost (localhost [127.0.0.1])"); ++ } else { + out_fprintf(out_stream, REC_TYPE_NORM, + "Received: from %s (%s [%s])", + state->helo_name ? state->helo_name : state->name, + state->name, state->rfc_addr); ++ } + #ifdef USE_TLS + if (var_smtpd_tls_received_header && state->tls_context) { + out_fprintf(out_stream, REC_TYPE_NORM, +diff -Naur no_alter/postfix-2.2.10/src/smtpd/smtpd_sasl_proto.c postfix-2.2.10/src/smtpd/smtpd_sasl_proto.c +--- no_alter/postfix-2.2.10/src/smtpd/smtpd_sasl_proto.c 2004-12-10 23:16:39.000000000 -0200 ++++ postfix-2.2.10/src/smtpd/smtpd_sasl_proto.c 2006-06-07 16:54:44.000000000 -0300 +@@ -118,6 +118,8 @@ + + #ifdef USE_SASL_AUTH + ++int sasl_authenticated; ++ + /* smtpd_sasl_auth_cmd - process AUTH command */ + + int smtpd_sasl_auth_cmd(SMTPD_STATE *state, int argc, SMTPD_TOKEN *argv) +@@ -126,6 +128,7 @@ + char *initial_response; + char *err; + ++ sasl_authenticated = 0; + if (var_helo_required && state->helo_name == 0) { + state->error_mask |= MAIL_ERROR_POLICY; + smtpd_chat_reply(state, "503 Error: send HELO/EHLO first"); +@@ -169,6 +172,7 @@ + return (-1); + } + smtpd_chat_reply(state, "235 Authentication successful"); ++ sasl_authenticated = 1; + return (0); + } + +diff -Naur no_alter/postfix-2.2.10/src/smtpd/smtpd_sasl_proto.h postfix-2.2.10/src/smtpd/smtpd_sasl_proto.h +--- no_alter/postfix-2.2.10/src/smtpd/smtpd_sasl_proto.h 2000-03-16 16:34:58.000000000 -0300 ++++ postfix-2.2.10/src/smtpd/smtpd_sasl_proto.h 2006-06-07 16:55:29.000000000 -0300 +@@ -17,6 +17,8 @@ + extern void smtpd_sasl_mail_log(SMTPD_STATE *); + extern void smtpd_sasl_mail_reset(SMTPD_STATE *); + ++extern int sasl_authenticated; ++ + /* LICENSE + /* .ad + /* .fi diff --git a/mail/mta/postfix/postfix-anon-2.2.3.diff b/mail/mta/postfix/postfix-anon-2.2.3.diff new file mode 100644 index 00000000..fc1321fc --- /dev/null +++ b/mail/mta/postfix/postfix-anon-2.2.3.diff @@ -0,0 +1,63 @@ +--- no_alter/postfix-2.2.3/src/smtpd/smtpd.c 2005-03-09 20:07:43.000000000 +0000 ++++ postfix-2.2.3/src/smtpd/smtpd.c 2005-05-31 14:15:50.000000000 +0000 +@@ -858,6 +858,7 @@ + char *var_smtpd_sasl_appname; + char *var_smtpd_sasl_realm; + char *var_smtpd_sasl_exceptions_networks; ++int sasl_authenticated; + char *var_filter_xport; + bool var_broken_auth_clients; + char *var_perm_mx_networks; +@@ -1947,10 +1948,14 @@ + * intermediate proxy. + */ + if (!state->proxy || state->xforward.flags == 0) { ++ if (sasl_authenticated == 1) { ++ out_fprintf(out_stream, REC_TYPE_NORM, "Received: from localhost (localhost [127.0.0.1])"); ++ } else { + out_fprintf(out_stream, REC_TYPE_NORM, + "Received: from %s (%s [%s])", + state->helo_name ? state->helo_name : state->name, + state->name, state->rfc_addr); ++ } + #ifdef USE_TLS + if (var_smtpd_tls_received_header && state->tls_context) { + out_fprintf(out_stream, REC_TYPE_NORM, +--- no_alter/postfix-2.2.3/src/smtpd/smtpd_sasl_proto.c 2004-12-11 01:16:39.000000000 +0000 ++++ postfix-2.2.3/src/smtpd/smtpd_sasl_proto.c 2005-05-31 14:17:47.000000000 +0000 +@@ -118,6 +118,8 @@ + + #ifdef USE_SASL_AUTH + ++int sasl_authenticated; ++ + /* smtpd_sasl_auth_cmd - process AUTH command */ + + int smtpd_sasl_auth_cmd(SMTPD_STATE *state, int argc, SMTPD_TOKEN *argv) +@@ -126,6 +128,7 @@ + char *initial_response; + char *err; + ++ sasl_authenticated = 0; + if (var_helo_required && state->helo_name == 0) { + state->error_mask |= MAIL_ERROR_POLICY; + smtpd_chat_reply(state, "503 Error: send HELO/EHLO first"); +@@ -169,6 +172,7 @@ + return (-1); + } + smtpd_chat_reply(state, "235 Authentication successful"); ++ sasl_authenticated = 1; + return (0); + } + +--- no_alter/postfix-2.2.3/src/smtpd/smtpd_sasl_proto.h 2000-03-16 19:34:58.000000000 +0000 ++++ postfix-2.2.3/src/smtpd/smtpd_sasl_proto.h 2005-05-31 14:18:20.000000000 +0000 +@@ -17,6 +17,8 @@ + extern void smtpd_sasl_mail_log(SMTPD_STATE *); + extern void smtpd_sasl_mail_reset(SMTPD_STATE *); + ++extern int sasl_authenticated; ++ + /* LICENSE + /* .ad + /* .fi diff --git a/mail/mta/postfix/postfix.SlackBuild b/mail/mta/postfix/postfix.SlackBuild new file mode 100755 index 00000000..56a61586 --- /dev/null +++ b/mail/mta/postfix/postfix.SlackBuild @@ -0,0 +1,191 @@ +#!/bin/bash +# +# original script from http://www.slacky.it/download/network/tool/postfix/2.2.10/src/postfix.SlackBuild +# changes by rhatto at riseup.net +# +# TODO: atualizar para o postfix 2.3.0 +# slack-required +# arrumar pasta de construcao +# + +cat << EOECHO +To build postfix with full capabilities (pcre, mysql, sasl, tls, ldap, vda and +postfix-anon support, first build/install the following packages: + + db3 and/or db4 + libgpg-error + libgcrypt + courier-authlib + courier-imap + gnutls + cyrus-sasl + openldap-client + +EOECHO + +if [ "$INTERACT" != "no" ]; then + echo "Hit ENTER do continue, Crtl-C to abort" + read crap +else + echo sleeping 3 seconds... + sleep 3 +fi + +CWD=`pwd` + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE=postfix +ARCH=${ARCH:=i486} +VERSION=${VERSION:=2.2.11} +BUILD=${BUILD:=2rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +# general definitions +PACKAGE_EXT="gz" +NAME=$PACKAGE +DOCDIR=/usr/doc/${NAME}-${VERSION} +READMEDIR=${DOCDIR}/README_FILES +HTMLDIR=${DOCDIR}/HTML +MANDIR=/usr/man +TMP="$TMP/$PACKAGE" +PKGDIR=${TMP}/package-${NAME} +SOURCEDIR=${TMP}/${NAME}-${VERSION} +RTOOL="wget" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" + +# url definitions +VDA="$PACKAGE-$VERSION-vda.patch.gz" +VDA_URL="http://web.onda.com.br/nadal/postfix/VDA/$VDA" +ANON="postfix-anon-$VERSION.diff" +URL="ftp://ftp.pucpr.br/$PACKAGE/official/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +# download sources +if [ "$RTOOL" == "wget" ]; then + if [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" + fi + if [ ! -f "$SRC_DIR/$VDA" ]; then + wget "$VDA_URL" -O "$SRC_DIR/$VDA" + fi + if [ ! -f "$SRC_DIR/$SRC.sig" ]; then + wget "$URL.sig" -O "$SRC_DIR/$SRC.sig" + fi +fi + +rm -rf ${PKGDIR} +mkdir -p ${PKGDIR} + +cd ${PKGDIR} +# install scripts + +if [ -e ${CWD}/script_${NAME}.tgz ]; then + tar zxvf ${CWD}/script_${NAME}.tgz +else + mkdir -v install +fi +sleep 1 +if [ -e ${CWD}/slack-desc ];then + cat ${CWD}/slack-desc | grep ^${NAME} > ${PKGDIR}/install/slack-desc +fi + +# Extract + +cd ${TMP} +rm -rf ${NAME}-${VERSION} ${SOURCEDIR} +tar xzvf $SRC_DIR/${NAME}-$VERSION.tar.gz +# Patch + +if [ -f "$SRC_DIR/$VDA" ]; then + gzip -dc $SRC_DIR/$VDA | patch -p0 +fi + +if [ -f "$CWD/$ANON" ]; then + patch -p0 < $CWD/$ANON +fi + +cd ${SOURCEDIR} +sleep 1 + +# Build + +# make -f Makefile.init makefiles \ +# 'CCARGS=-DUSE_TLS -DHAS_SSL -I/usr/include/openssl -DHAS_MYSQL -I/usr/include/mysql' \ +# 'AUXLIBS=-L/usr/lib -lssl -lcrypto -L/usr/lib/mysql -lmysqlclient -lz -lm' + +# db3 explicit +# make -f Makefile.init makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/include/sasl/ -DHAS_MYSQL -I/usr/include/mysql/ -I/usr/include -DHAS_LDAP -DUSE_TLS -I/usr/include/gnutls/ -DHAS_PCRE -I/usr/include -DHAS_DB -I/usr/include/db3" AUXLIBS="-L/usr/lib -lsasl2 -L/usr/lib/mysql/ -lmysqlclient -lz -lm -L/usr/lib -lssl -lcrypto -L/usr/lib -lpcre -L/usr/lib -lldap -L/usr/lib -llber -L/usr/include/db3 -ldb3" + +make -f Makefile.init makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/include/sasl/ -DHAS_MYSQL -I/usr/include/mysql/ -I/usr/include -DHAS_LDAP -DUSE_TLS -I/usr/include/gnutls/ -DHAS_PCRE -I/usr/include" AUXLIBS="-L/usr/lib -lsasl2 -L/usr/lib/mysql/ -lmysqlclient -lz -lm -L/usr/lib -lssl -lcrypto -L/usr/lib -lpcre -L/usr/lib -lldap -L/usr/lib -llber" + +make || exit 32 +sleep 1 + +sh postfix-install \ + install_root=${PKGDIR} \ + tempdir=${SOURCE} \ + manpage_directory=${MANDIR} \ + readme_directory=${READMEDIR} \ + html_directory=${HTMLDIR} \ + config_directory=/etc/postfix \ + sample_directory=/etc/postfix/sample \ + daemon_directory=/usr/libexec/postfix \ + command_directory=/usr/sbin/ \ + queue_directory=/var/spool/postfix \ + sendmail_path=/usr/sbin/sendmail \ + newaliases_path=/usr/sbin/newaliases \ + mailq_path=/usr/sbin/mailq \ + mail_owner=postfix \ + setgid_group=postdrop \ + -non-interactive + +cd ${PKGDIR}/etc/postfix + +for a in access aliases canonical header_checks main.cf makedefs.out master.cf postfix-files relocated transport virtual; do + mv ${a} ${a}.new +done + +sleep 2 + +mkdir -p ${PKGDIR}/${DOCDIR} + +for file in AUTHORS COPYING HACKING NEWS README TODO INSTALL AAAREADME COMPATIBILITY COPYRIGHT HISTORY LICENSE RELEASE_NOTES* TLS_* US_PATENT_6321267; do + if [ -e "${SOURCEDIR}/${file}" ]; then + cp -v ${SOURCEDIR}/${file} ${PKGDIR}/${DOCDIR}/ + fi +done + +( cd $PKGDIR + 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 +) + +find ${PKGDIR}/${DOCDIR} ${PKGDIR}/${MANDIR} -type f | xargs gzip -v + +find ${PKGDIR}/bin ${PKGDIR}/sbin ${PKGDIR}/usr/bin ${PKGDIR}/usr/sbin -type f | xargs chown -v root.bin +# Build the package: +cd $PKGDIR +#requiredbuilder -v -y -s $CWD $PKGDIR +/sbin/makepkg -l n -c n --prepend $REPOS/${NAME}-${VERSION}-${ARCH}-${BUILD}.tgz + +# Clean up the extra stuff: +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/mail/mta/postfix/script_postfix.tgz b/mail/mta/postfix/script_postfix.tgz new file mode 100644 index 00000000..ec5f621e Binary files /dev/null and b/mail/mta/postfix/script_postfix.tgz differ diff --git a/mail/mta/postfix/slack-desc b/mail/mta/postfix/slack-desc new file mode 100644 index 00000000..b81e3bb6 --- /dev/null +++ b/mail/mta/postfix/slack-desc @@ -0,0 +1,20 @@ +# 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------------------------------------------------------| +postfix: Postfix (an alternative to the widely-used Sendmail program.) +postfix: +postfix: Postfix attempts to be fast, easy to administer, and secure, while at +postfix: the same time being sendmail compatible enough to not upset existing +postfix: users. Thus, the outside has a sendmail-ish flavor, but the inside is +postfix: completely different. +postfix: +postfix: This is postfix compiled with pcre, mysql, sasl, tls, ldap and +postfix: patched with VDA and postfix-anon. +postfix: +postfix: + diff --git a/mail/mta/postfix/slack-required b/mail/mta/postfix/slack-required new file mode 100644 index 00000000..aaa0073c --- /dev/null +++ b/mail/mta/postfix/slack-required @@ -0,0 +1,5 @@ +glibc-solibs >= 2.3.5-i486-5 +mysql >= 4.1.14-i486-1 +openssl >= 0.9.7g-i486-2 | openssl-solibs >= 0.9.7g-i486-2 +pcre >= 6.4-i486-1 +zlib >= 1.2.3-i486-1 diff --git a/media/libs/openexr/openexr.SlackBuild b/media/libs/openexr/openexr.SlackBuild new file mode 100755 index 00000000..ca025d21 --- /dev/null +++ b/media/libs/openexr/openexr.SlackBuild @@ -0,0 +1,124 @@ +#!/bin/bash +# +# slackbuild script for OpenEXR +# by rafael at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building OpenEXR are: + cat slack-required | sed -e 's/^/\t/' + if [ "$INTERACT" != "no" ]; then + echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. + read crap +# else +# echo Sleeping 3 seconds... +# sleep 3 + fi +fi + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="openexr" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=1.4.0a} +BUILD=${BUILD:=1rd} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://download.savannah.nongnu.org/releases/openexr/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC + +# small hack for version 1.4.0 +if [ "$VERSION" == "1.4.0a" ]; then + mv openexr-1.4.0 openexr-1.4.0a +fi + +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff +fi + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --with-docdir=/usr/doc/$PACKAGE-$VERSION +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > install/slack-desc +# 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-----------------------------------------------------| +openexr: OpenEXR (OpenEXR set of libraries for higher color fidelity images) +openexr: +openexr: OpenEXR supports several lossless compression methods, some of which +openexr: can achieve compression ratios of about 2:1 for images with film +openexr: grain. OpenEXR is extensible, so developers can easily add new +openexr: compression methods (lossless or lossy). +openexr: +openexr: +openexr: +openexr: http://www.openexr.com/ +openexr: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README;do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/nano/nano.SlackBuild b/nano/nano.SlackBuild deleted file mode 100755 index 0d164d87..00000000 --- a/nano/nano.SlackBuild +++ /dev/null @@ -1,106 +0,0 @@ -#!/bin/bash -# -# slackbuild script for nano -# by rhatto at riseup.net -# - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="nano" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=1.2.5} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://www.nano-editor.org/dist/v1.2/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff -fi - -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR -make || exit 32 -make DESTDIR=$TMP/package-$PACKAGE install - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > install/slack-desc -# 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-----------------------------------------------------| -nano: nano (GNU Nano editor) -nano: -nano: GNU nano (Nano's ANOther editor, or Not ANOther editor) is an -nano: enhanced clone of the Pico text editor. -nano: -nano: -nano: -nano: -nano: -nano: -nano: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO UPGRADE; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/net/chat/bitlbee/bitlbee.SlackBuild b/net/chat/bitlbee/bitlbee.SlackBuild deleted file mode 100755 index 47713be6..00000000 --- a/net/chat/bitlbee/bitlbee.SlackBuild +++ /dev/null @@ -1,132 +0,0 @@ -#!/bin/bash -# -# slackbuild script for bitlbee -# by rhatto at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building bitlbee are: - cat slack-required | sed -e 's/^/\t/' - if [ "$INTERACT" != "no" ]; then - echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. - read crap -# else -# echo Sleeping 3 seconds... -# sleep 3 - fi -fi - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="bitlbee" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=1.0.3} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - export LDFLAGS="-L/lib64 -L/usr/lib64" - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://get.bitlbee.org/src/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff -fi - -./configure --prefix=/usr --etcdir=/etc/bitlbee --libdir=$LIBDIR - -if [ "$ARCH" == "x86_64" ]; then - cat Makefile.settings | sed -e 's/^LFLAGS=$/LFLAGS=-L\/lib64 -L\/usr\/lib64 -liconv/' > Makefile.settings.new - mv Makefile.settings.new Makefile.settings -fi - -make || exit 32 -make DESTDIR=$TMP/package-$PACKAGE install - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -mkdir -p $TMP/package-$PACKAGE/etc/bitlbee -cp $CWD/bitlbee.conf $TMP/package-$PACKAGE/etc/bitlbee/bitlbee.conf.dist - -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 - -mkdir install -cat << EOF > install/slack-desc -# 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-----------------------------------------------------| -bitlbee: bitlbee (An IRC to other chat networks gateway) -bitlbee: -bitlbee: BitlBee allows users to talk to people on the MSN, ICQ, Jabber, -bitlbee: Yahoo!, and AIM networks with any IRC client by emulating an IRC -bitlbee: server. A virtual channel is created with all of the user's buddies -bitlbee: in it, who can be talked to in the channel or in a query. -bitlbee: -bitlbee: -bitlbee: -bitlbee: -bitlbee: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION -cp $CWD/COPYING usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS CHANGES CREDITS FAQ INSTALL README; do - cp $CWD/doc/$file* usr/doc/$PACKAGE-$VERSION/ -done - -# install script -echo '( if [ ! -f "etc/bitlbee/bitlbee.conf" ]; then mv etc/bitlbee/bitlbee.conf.dist etc/bitlbee/bitlbee.conf; fi )' > install/doinst.sh - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/net/chat/bitlbee/slack-required b/net/chat/bitlbee/slack-required deleted file mode 100644 index 196e8fce..00000000 --- a/net/chat/bitlbee/slack-required +++ /dev/null @@ -1,2 +0,0 @@ -gnutls -libiconv diff --git a/net/chat/ekiga/ekiga.SlackBuild b/net/chat/ekiga/ekiga.SlackBuild deleted file mode 100755 index 0c43d9c6..00000000 --- a/net/chat/ekiga/ekiga.SlackBuild +++ /dev/null @@ -1,119 +0,0 @@ -#!/bin/bash -# -# slackbuild script for ekiga -# by rafael at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building ekiga are: - cat slack-required | sed -e 's/^/\t/' - if [ "$INTERACT" != "no" ]; then - echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. - read crap -# else -# echo Sleeping 3 seconds... -# sleep 3 - fi -fi - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="ekiga" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=2.0.3} -BUILD=${BUILD:=1rd} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - export LDFLAGS="-L/lib64 -L/usr/lib64" - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://www.ekiga.org/admin/downloads/latest/sources/sources/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff -fi - -./configure --prefix=/usr --disable-gnome --disable-avahi --sysconfdir=/etc --libdir=$LIBDIR -make || exit 32 -make DESTDIR=$TMP/package-$PACKAGE install - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > install/slack-desc -# 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-----------------------------------------------------| -ekiga: ekiga (Ekiga is a VoIP softphone) -ekiga: -ekiga: Ekiga (formely known as GnomeMeeting) is an open source VoIP and -ekiga: video conferencing application for GNOME. Ekiga uses both the H.323 -ekiga: and SIP protocols. It supports many audio and video codecs, and is -ekiga: interoperable with other SIP compliant software and also with -ekiga: Microsoft NetMeeting. -ekiga: -ekiga: -ekiga: http://www.ekiga.org/ -ekiga: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO;do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/net/chat/ekiga/slack-required b/net/chat/ekiga/slack-required deleted file mode 100644 index df2d09b1..00000000 --- a/net/chat/ekiga/slack-required +++ /dev/null @@ -1,3 +0,0 @@ -openldap-client -pwlib -opal diff --git a/net/chat/lirc/lirc.SlackBuild b/net/chat/lirc/lirc.SlackBuild deleted file mode 100755 index 13268723..00000000 --- a/net/chat/lirc/lirc.SlackBuild +++ /dev/null @@ -1,122 +0,0 @@ -#!/bin/bash -# -# slackbuild script for lirc -# by rafael at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building lirc are: - cat slack-required | sed -e 's/^/\t/' - if [ "$INTERACT" != "no" ]; then - echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. - read crap -# else -# echo Sleeping 3 seconds... -# sleep 3 - fi -fi - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="lirc" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=0.8.1pre2} -BUILD=${BUILD:=1rd} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - export LDFLAGS="-L/lib64 -L/usr/lib64" - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -# ------- error codes for createpkg -------------- -ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 -ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 -ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 -ERROR_PATCH=40 - -RTOOL="wget" -PACKAGE_EXT="bz2" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://lirc.sourceforge.net/software/snapshots/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH -fi - -# Warning, building without any driver!! -./configure --prefix=/usr --with-driver=none --enable-sandbox --sysconfdir=/etc --libdir=$LIBDIR || exit $ERROR_CONF -make || exit $ERROR_MAKE -make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > install/slack-desc -# 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-----------------------------------------------------| -lirc: lirc -lirc: -lirc: LIRC is a package that allows you to decode and send infra-red -lirc: signals of many (but not all) commonly used remote controls. -lirc: -lirc: -lirc: -lirc: -lirc: -lirc: http://www.lirc.org/ -lirc: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -DOCS="ANNOUNCE AUTHORS COPYING ChangeLog INSTALL NEWS README TODO" - -for file in $DOCS; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/net/im/bitlbee/bitlbee.SlackBuild b/net/im/bitlbee/bitlbee.SlackBuild new file mode 100755 index 00000000..47713be6 --- /dev/null +++ b/net/im/bitlbee/bitlbee.SlackBuild @@ -0,0 +1,132 @@ +#!/bin/bash +# +# slackbuild script for bitlbee +# by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building bitlbee are: + cat slack-required | sed -e 's/^/\t/' + if [ "$INTERACT" != "no" ]; then + echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. + read crap +# else +# echo Sleeping 3 seconds... +# sleep 3 + fi +fi + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="bitlbee" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=1.0.3} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + export LDFLAGS="-L/lib64 -L/usr/lib64" + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://get.bitlbee.org/src/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff +fi + +./configure --prefix=/usr --etcdir=/etc/bitlbee --libdir=$LIBDIR + +if [ "$ARCH" == "x86_64" ]; then + cat Makefile.settings | sed -e 's/^LFLAGS=$/LFLAGS=-L\/lib64 -L\/usr\/lib64 -liconv/' > Makefile.settings.new + mv Makefile.settings.new Makefile.settings +fi + +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +mkdir -p $TMP/package-$PACKAGE/etc/bitlbee +cp $CWD/bitlbee.conf $TMP/package-$PACKAGE/etc/bitlbee/bitlbee.conf.dist + +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 + +mkdir install +cat << EOF > install/slack-desc +# 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-----------------------------------------------------| +bitlbee: bitlbee (An IRC to other chat networks gateway) +bitlbee: +bitlbee: BitlBee allows users to talk to people on the MSN, ICQ, Jabber, +bitlbee: Yahoo!, and AIM networks with any IRC client by emulating an IRC +bitlbee: server. A virtual channel is created with all of the user's buddies +bitlbee: in it, who can be talked to in the channel or in a query. +bitlbee: +bitlbee: +bitlbee: +bitlbee: +bitlbee: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION +cp $CWD/COPYING usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS CHANGES CREDITS FAQ INSTALL README; do + cp $CWD/doc/$file* usr/doc/$PACKAGE-$VERSION/ +done + +# install script +echo '( if [ ! -f "etc/bitlbee/bitlbee.conf" ]; then mv etc/bitlbee/bitlbee.conf.dist etc/bitlbee/bitlbee.conf; fi )' > install/doinst.sh + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/net/im/bitlbee/slack-required b/net/im/bitlbee/slack-required new file mode 100644 index 00000000..196e8fce --- /dev/null +++ b/net/im/bitlbee/slack-required @@ -0,0 +1,2 @@ +gnutls +libiconv diff --git a/net/im/ekiga/ekiga.SlackBuild b/net/im/ekiga/ekiga.SlackBuild new file mode 100755 index 00000000..0c43d9c6 --- /dev/null +++ b/net/im/ekiga/ekiga.SlackBuild @@ -0,0 +1,119 @@ +#!/bin/bash +# +# slackbuild script for ekiga +# by rafael at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building ekiga are: + cat slack-required | sed -e 's/^/\t/' + if [ "$INTERACT" != "no" ]; then + echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. + read crap +# else +# echo Sleeping 3 seconds... +# sleep 3 + fi +fi + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="ekiga" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=2.0.3} +BUILD=${BUILD:=1rd} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + export LDFLAGS="-L/lib64 -L/usr/lib64" + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://www.ekiga.org/admin/downloads/latest/sources/sources/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff +fi + +./configure --prefix=/usr --disable-gnome --disable-avahi --sysconfdir=/etc --libdir=$LIBDIR +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > install/slack-desc +# 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-----------------------------------------------------| +ekiga: ekiga (Ekiga is a VoIP softphone) +ekiga: +ekiga: Ekiga (formely known as GnomeMeeting) is an open source VoIP and +ekiga: video conferencing application for GNOME. Ekiga uses both the H.323 +ekiga: and SIP protocols. It supports many audio and video codecs, and is +ekiga: interoperable with other SIP compliant software and also with +ekiga: Microsoft NetMeeting. +ekiga: +ekiga: +ekiga: http://www.ekiga.org/ +ekiga: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO;do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/net/im/ekiga/slack-required b/net/im/ekiga/slack-required new file mode 100644 index 00000000..df2d09b1 --- /dev/null +++ b/net/im/ekiga/slack-required @@ -0,0 +1,3 @@ +openldap-client +pwlib +opal diff --git a/net/im/lirc/lirc.SlackBuild b/net/im/lirc/lirc.SlackBuild new file mode 100755 index 00000000..13268723 --- /dev/null +++ b/net/im/lirc/lirc.SlackBuild @@ -0,0 +1,122 @@ +#!/bin/bash +# +# slackbuild script for lirc +# by rafael at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building lirc are: + cat slack-required | sed -e 's/^/\t/' + if [ "$INTERACT" != "no" ]; then + echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. + read crap +# else +# echo Sleeping 3 seconds... +# sleep 3 + fi +fi + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="lirc" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=0.8.1pre2} +BUILD=${BUILD:=1rd} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + export LDFLAGS="-L/lib64 -L/usr/lib64" + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +# ------- error codes for createpkg -------------- +ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 +ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 +ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 +ERROR_PATCH=40 + +RTOOL="wget" +PACKAGE_EXT="bz2" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://lirc.sourceforge.net/software/snapshots/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH +fi + +# Warning, building without any driver!! +./configure --prefix=/usr --with-driver=none --enable-sandbox --sysconfdir=/etc --libdir=$LIBDIR || exit $ERROR_CONF +make || exit $ERROR_MAKE +make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > install/slack-desc +# 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-----------------------------------------------------| +lirc: lirc +lirc: +lirc: LIRC is a package that allows you to decode and send infra-red +lirc: signals of many (but not all) commonly used remote controls. +lirc: +lirc: +lirc: +lirc: +lirc: +lirc: http://www.lirc.org/ +lirc: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +DOCS="ANNOUNCE AUTHORS COPYING ChangeLog INSTALL NEWS README TODO" + +for file in $DOCS; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/net/libs/opal/opal.SlackBuild b/net/libs/opal/opal.SlackBuild new file mode 100755 index 00000000..c9c495c3 --- /dev/null +++ b/net/libs/opal/opal.SlackBuild @@ -0,0 +1,111 @@ +#!/bin/bash +# +# slackbuild script for opal +# by rafael at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building pwlib are: + cat slack-required | sed -e 's/^/\t/' + if [ "$INTERACT" != "no" ]; then + echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. + read crap +# else +# echo Sleeping 3 seconds... +# sleep 3 + fi +fi + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="opal" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=2.2.3} +BUILD=${BUILD:=1rd} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://www.ekiga.org/admin/downloads/latest/sources/sources/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff +fi + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --with-docdir=/usr/doc/$PACKAGE-$VERSION +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > install/slack-desc +# 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-----------------------------------------------------| +opal: opal (Opal is a library for VoIP protocols) +opal: +opal: +opal: +opal: +opal: +opal: +opal: +opal: +opal: +opal: +EOF + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/net/libs/opal/slack-required b/net/libs/opal/slack-required new file mode 100644 index 00000000..de907ed8 --- /dev/null +++ b/net/libs/opal/slack-required @@ -0,0 +1 @@ +pwlib diff --git a/net/nds/openldap/openldap-client.SlackBuild b/net/nds/openldap/openldap-client.SlackBuild new file mode 100755 index 00000000..b2e49184 --- /dev/null +++ b/net/nds/openldap/openldap-client.SlackBuild @@ -0,0 +1,123 @@ +#!/bin/bash +# +# slackbuild script for openldap-client +# + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="openldap-client" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=2.3.24} +BUILD=${BUILD:=2rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="tgz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +KEY="http://www.courier-mta.org/KEYS.bin" +SRC="openldap-$VERSION.$PACKAGE_EXT" +#URL="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$SRC" +URL="http://public.planetmirror.com/pub/openldap/openldap-release/$SRC" + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +SRC_DIR="$SRC_DIR/openldap" +mkdir -p $SRC_DIR + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR="/usr/lib64" +else + LIBDIR="/usr/lib" +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +mv openldap-$VERSION $PACKAGE-$VERSION +cd $PACKAGE-$VERSION + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --without-kerberos \ + --without-cyrus-sasl --without-tls --without-threads --disable-slapd --disable-slurpd + +make depend +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > install/slack-desc +# 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-----------------------------------------------------| +openldap-client: openldap-client (LDAP application client) +openldap-client: +openldap-client: The OpenLDAP Project is a collaborative effort to provide a robust, +openldap-client: commercial-grade, fully featured, open source LDAP software suite. +openldap-client: The project is managed by a worldwide community of volunteers that +openldap-client: use the Internet to communicate, plan, and develop OpenLDAP Software +openldap-client: and its related documentation. OpenLDAP Software provides a complete +openldap-client: LDAP implementation including server, clients, C SDK, and associated +openldap-client: tools. +openldap-client: +openldap-client: +EOF + +# configs +if [ -f "etc/openldap/ldap.conf" ]; then + mv etc/openldap/ldap.conf etc/openldap/ldap.conf.new +fi + +if [ -f "etc/openldap/slapd.conf" ]; then + mv etc/openldap/slapd.conf etc/openldap/slapd.conf.new +fi + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in ANNOUNCEMENT CHANGES COPYRIGHT INSTALL LICENSE README; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/net/nds/openldap/openldap.SlackBuild b/net/nds/openldap/openldap.SlackBuild new file mode 100755 index 00000000..1cb6ee6c --- /dev/null +++ b/net/nds/openldap/openldap.SlackBuild @@ -0,0 +1,135 @@ +#!/bin/bash +# +# slackbuild script for openldap +# by rhatto at riseup.net +# + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="openldap" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=2.3.24} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="tgz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +KEY="http://www.courier-mta.org/KEYS.bin" +SRC="$PACKAGE-$VERSION.$PACKAGE_EXT" +#URL="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$SRC" +URL="http://public.planetmirror.com/pub/openldap/openldap-release/$SRC" + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR="/usr/lib64" +else + LIBDIR="/usr/lib" +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION + +# otherwise will not work +DBINC="`ls -l /usr/include/db.h | awk '{ print $10 }'`" +if [ ! -f "$DBINC" ]; then + cp /usr/include/db.h db.h.save +fi + +ln -sf /usr/include/db4/db.h /usr/include/db.h + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR +make depend +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +# fix your system +if [ ! -f "$DBINC" ]; then + cp db.h.save /usr/include/db.h +else + ln -sf $DBINC /usr/include/db.h +fi + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > install/slack-desc +# 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-----------------------------------------------------| +openldap: openldap (LDAP suite of applications and development tools) +openldap: +openldap: The OpenLDAP Project is a collaborative effort to provide a robust, +openldap: commercial-grade, fully featured, open source LDAP software suite. +openldap: The project is managed by a worldwide community of volunteers that +openldap: use the Internet to communicate, plan, and develop OpenLDAP Software +openldap: and its related documentation. OpenLDAP Software provides a complete +openldap: LDAP implementation including server, clients, C SDK, and associated +openldap: tools. +openldap: +openldap: +EOF + +# configs +mv etc/openldap/ldap.conf etc/openldap/ldap.conf.new +mv etc/openldap/slapd.conf etc/openldap/slapd.conf.new + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in ANNOUNCEMENT CHANGES COPYRIGHT INSTALL LICENSE README; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +# install script +echo '( if [ ! -f "etc/openldap/ldap.conf" ]; then mv etc/openldap/ldap.conf.new etc/openldap/ldap.conf; fi )' > install/doinst.sh +echo '( if [ ! -f "etc/openldap/slapd.conf" ]; then mv etc/openldap/slapd.conf.new etc/openldap/slapd.conf; fi )' >> install/doinst.sh + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/net/p2p/nicotine/nicotine+.SlackBuild b/net/p2p/nicotine/nicotine+.SlackBuild new file mode 100755 index 00000000..0da0eac9 --- /dev/null +++ b/net/p2p/nicotine/nicotine+.SlackBuild @@ -0,0 +1,30 @@ +#!/bin/bash +# +# SlackBuild script to call nicotine+.build with correct settings +# + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="nicotine+" +VERSION=${VERSION:=1.2.4.1} +ARCH="noarch" +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +rm -rf $TMP/$PACKAGE +mkdir -p $SRC_DIR/$PACKAGE $TMP/$PACKAGE $REPOS + +slacktrack -b $REPOS -x $TMP,$SRC_DIR,/dev -jefkzp "$PACKAGE-$VERSION-$ARCH-$BUILD.tgz" "./$PACKAGE.build" + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP/$PACKAGE +fi diff --git a/net/p2p/nicotine/nicotine+.build b/net/p2p/nicotine/nicotine+.build new file mode 100755 index 00000000..12a6c58a --- /dev/null +++ b/net/p2p/nicotine/nicotine+.build @@ -0,0 +1,96 @@ +#!/bin/bash +# +# build script for nicotine+ +# by rhatto at riseup.net +# build it with slacktrack, example: +# +# slacktrack -jefkzp "nicotine+-1.2.4.1-noarch-1rha.tgz" "./nicotine+.build" +# + +CWD="`pwd`" + +if [ -f "/etc/slackbuildrc" ]; then + source /etc/slackbuildrc +fi + +if [ -f "~/.slackbuildrc" ]; then + source ~/.slackbuildrc +fi + +# default settings +PACKAGE="nicotine+" +VERSION=${VERSION:=1.2.4.1} +ARCH="noarch" +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} + +RTOOL="wget" +PACKAGE_EXT="bz2" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://easynews.dl.sourceforge.net/sourceforge/nicotine-plus/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" + +if [ ! -d "$SRC_DIR" ]; then + mkdir -p $SRC_DIR +fi + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +TMP="$TMP/$PACKAGE" + +if [ ! -d "$TMP" ]; then + mkdir -p $TMP +fi + +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION + +python setup.py install --prefix=/usr + +CWD="`pwd`" + +mkdir /install + +cat << EOF > /install/slack-desc +# 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-----------------------------------------------------| +nicotine+: nicotine+ (soulseek client clone) +nicotine+: +nicotine+: Nicotine is a SoulSeek client written in Python, based on the +nicotine+: PySoulSeek project by Alexander Kanavin. It features, among other +nicotine+: things, a completely rewritten graphical user interface which uses +nicotine+: the PyGTK-2 toolkit and a less strict user request policy. +nicotine+: +nicotine+: This version is the forked one distributed at +nicotine+: http://nicotine-plus.sourceforge.net +nicotine+: +nicotine+: +EOF + +# docs +mkdir -p /usr/doc/$PACKAGE-$VERSION + +for file in COPYING MANIFEST; do + cp $CWD/$file* /usr/doc/$PACKAGE-$VERSION/ +done + +cp -R $CWD/docs/* /usr/doc/$PACKAGE-$VERSION/ + diff --git a/net/p2p/nicotine/nicotine.SlackBuild b/net/p2p/nicotine/nicotine.SlackBuild new file mode 100755 index 00000000..aa1250d2 --- /dev/null +++ b/net/p2p/nicotine/nicotine.SlackBuild @@ -0,0 +1,42 @@ +#!/bin/bash +# +# SlackBuild script to call nicotine.build with correct settings +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building nicotine are: + cat slack-required | sed -e 's/^/\t/' + if [ "$INTERACT" != "no" ]; then + echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. + read crap +# else +# echo Sleeping 3 seconds... +# sleep 3 + fi +fi + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="nicotine" +VERSION=${VERSION:=1.0.8} +ARCH=${ARCH:=i486} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +rm -rf $TMP/$PACKAGE +mkdir -p $SRC_DIR/$PACKAGE $TMP/$PACKAGE $REPOS + +slacktrack -b $REPOS -x $TMP,$SRC_DIR,/dev -jefkzp "$PACKAGE-$VERSION-$ARCH-$BUILD.tgz" "./$PACKAGE.build" + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP/$PACKAGE +fi diff --git a/net/p2p/nicotine/nicotine.build b/net/p2p/nicotine/nicotine.build new file mode 100755 index 00000000..149062fd --- /dev/null +++ b/net/p2p/nicotine/nicotine.build @@ -0,0 +1,94 @@ +#!/bin/bash +# +# build script for nicotine +# by rhatto at riseup.net +# build it with slacktrack, example: +# +# slacktrack -jefkzp "nicotine-1.2.4.1-noarch-1rha.tgz" "./nicotine.build" +# + +CWD="`pwd`" + +if [ -f "/etc/slackbuildrc" ]; then + source /etc/slackbuildrc +fi + +if [ -f "~/.slackbuildrc" ]; then + source ~/.slackbuildrc +fi + +# default settings +PACKAGE="nicotine" +VERSION=${VERSION:=1.0.8} +ARCH=${ARCH:=i486} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} + +RTOOL="wget" +PACKAGE_EXT="bz2" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://nicotine.thegraveyard.org/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" + +if [ ! -d "$SRC_DIR" ]; then + mkdir -p $SRC_DIR +fi + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +TMP="$TMP/$PACKAGE" + +if [ ! -d "$TMP" ]; then + mkdir -p $TMP +fi + +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION + +python setup.py install --prefix=/usr + +CWD="`pwd`" + +mkdir /install + +cat << EOF > /install/slack-desc +# 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-----------------------------------------------------| +nicotine: nicotine (soulseek client clone) +nicotine: +nicotine: Nicotine is a SoulSeek client written in Python, based on the +nicotine: PySoulSeek project by Alexander Kanavin. It features, among other +nicotine: things, a completely rewritten graphical user interface which uses +nicotine: the PyGTK-2 toolkit and a less strict user request policy. +nicotine: +nicotine: +nicotine: +nicotine: +nicotine: +EOF + +# docs +mkdir -p /usr/doc/$PACKAGE-$VERSION + +for file in CHANGELOG COPYING INSTALL KNOWN_BUGS MAINTAINERS MANIFEST PKG-INFO README README.import-winconfig TODO TRANSLATORS; do + cp $CWD/$file* /usr/doc/$PACKAGE-$VERSION/ +done + diff --git a/net/p2p/nicotine/slack-required b/net/p2p/nicotine/slack-required new file mode 100644 index 00000000..d01ef22f --- /dev/null +++ b/net/p2p/nicotine/slack-required @@ -0,0 +1 @@ +pygtk diff --git a/net/www/nspluginwrapper/nspluginwrapper.SlackBuild b/net/www/nspluginwrapper/nspluginwrapper.SlackBuild new file mode 100755 index 00000000..59102127 --- /dev/null +++ b/net/www/nspluginwrapper/nspluginwrapper.SlackBuild @@ -0,0 +1,121 @@ +#!/bin/bash +# +# slackbuild script for nspluginwrapper +# by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building nspluginwrapper are: + cat slack-required | sed -e 's/^/\t/' + if [ "$INTERACT" != "no" ]; then + echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. + read crap +# else +# echo Sleeping 3 seconds... +# sleep 3 + fi +fi + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="nspluginwrapper" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=0.9.90.1} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + export LDFLAGS="-L/lib64 -L/usr/lib64" + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +# ------- error codes for createpkg -------------- +ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 +ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 +ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 +ERROR_PATCH=40 + +RTOOL="wget" +PACKAGE_EXT="bz2" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://www.gibix.net/projects/nspluginwrapper/files/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH +fi + +./configure --prefix=/usr --with-lib=$LIBDIR || exit $ERROR_CONF +make || exit $ERROR_MAKE +make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 + +mkdir install +cat << EOF > install/slack-desc +# 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-----------------------------------------------------| +nspluginwrapper: nspluginwrapper +nspluginwrapper: +nspluginwrapper: nspluginwrapper is an Open Source compatibility plugin for Netscape +nspluginwrapper: 4 (NPAPI) plugins. That is, it enables you to use plugins on +nspluginwrapper: platforms they were not built for. For example, you can use the +nspluginwrapper: Adobe Flash plugin with x86-64 compiled Mozilla browsers. +nspluginwrapper: +nspluginwrapper: +nspluginwrapper: +nspluginwrapper: +nspluginwrapper: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +DOCS="COPYING NEWS README TODO" + +for file in $DOCS; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/nicotine/nicotine+.SlackBuild b/nicotine/nicotine+.SlackBuild deleted file mode 100755 index 0da0eac9..00000000 --- a/nicotine/nicotine+.SlackBuild +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -# -# SlackBuild script to call nicotine+.build with correct settings -# - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="nicotine+" -VERSION=${VERSION:=1.2.4.1} -ARCH="noarch" -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -rm -rf $TMP/$PACKAGE -mkdir -p $SRC_DIR/$PACKAGE $TMP/$PACKAGE $REPOS - -slacktrack -b $REPOS -x $TMP,$SRC_DIR,/dev -jefkzp "$PACKAGE-$VERSION-$ARCH-$BUILD.tgz" "./$PACKAGE.build" - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP/$PACKAGE -fi diff --git a/nicotine/nicotine+.build b/nicotine/nicotine+.build deleted file mode 100755 index 12a6c58a..00000000 --- a/nicotine/nicotine+.build +++ /dev/null @@ -1,96 +0,0 @@ -#!/bin/bash -# -# build script for nicotine+ -# by rhatto at riseup.net -# build it with slacktrack, example: -# -# slacktrack -jefkzp "nicotine+-1.2.4.1-noarch-1rha.tgz" "./nicotine+.build" -# - -CWD="`pwd`" - -if [ -f "/etc/slackbuildrc" ]; then - source /etc/slackbuildrc -fi - -if [ -f "~/.slackbuildrc" ]; then - source ~/.slackbuildrc -fi - -# default settings -PACKAGE="nicotine+" -VERSION=${VERSION:=1.2.4.1} -ARCH="noarch" -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} - -RTOOL="wget" -PACKAGE_EXT="bz2" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://easynews.dl.sourceforge.net/sourceforge/nicotine-plus/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" - -if [ ! -d "$SRC_DIR" ]; then - mkdir -p $SRC_DIR -fi - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -TMP="$TMP/$PACKAGE" - -if [ ! -d "$TMP" ]; then - mkdir -p $TMP -fi - -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -cd $PACKAGE-$VERSION - -python setup.py install --prefix=/usr - -CWD="`pwd`" - -mkdir /install - -cat << EOF > /install/slack-desc -# 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-----------------------------------------------------| -nicotine+: nicotine+ (soulseek client clone) -nicotine+: -nicotine+: Nicotine is a SoulSeek client written in Python, based on the -nicotine+: PySoulSeek project by Alexander Kanavin. It features, among other -nicotine+: things, a completely rewritten graphical user interface which uses -nicotine+: the PyGTK-2 toolkit and a less strict user request policy. -nicotine+: -nicotine+: This version is the forked one distributed at -nicotine+: http://nicotine-plus.sourceforge.net -nicotine+: -nicotine+: -EOF - -# docs -mkdir -p /usr/doc/$PACKAGE-$VERSION - -for file in COPYING MANIFEST; do - cp $CWD/$file* /usr/doc/$PACKAGE-$VERSION/ -done - -cp -R $CWD/docs/* /usr/doc/$PACKAGE-$VERSION/ - diff --git a/nicotine/nicotine.SlackBuild b/nicotine/nicotine.SlackBuild deleted file mode 100755 index aa1250d2..00000000 --- a/nicotine/nicotine.SlackBuild +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -# -# SlackBuild script to call nicotine.build with correct settings -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building nicotine are: - cat slack-required | sed -e 's/^/\t/' - if [ "$INTERACT" != "no" ]; then - echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. - read crap -# else -# echo Sleeping 3 seconds... -# sleep 3 - fi -fi - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="nicotine" -VERSION=${VERSION:=1.0.8} -ARCH=${ARCH:=i486} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -rm -rf $TMP/$PACKAGE -mkdir -p $SRC_DIR/$PACKAGE $TMP/$PACKAGE $REPOS - -slacktrack -b $REPOS -x $TMP,$SRC_DIR,/dev -jefkzp "$PACKAGE-$VERSION-$ARCH-$BUILD.tgz" "./$PACKAGE.build" - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP/$PACKAGE -fi diff --git a/nicotine/nicotine.build b/nicotine/nicotine.build deleted file mode 100755 index 149062fd..00000000 --- a/nicotine/nicotine.build +++ /dev/null @@ -1,94 +0,0 @@ -#!/bin/bash -# -# build script for nicotine -# by rhatto at riseup.net -# build it with slacktrack, example: -# -# slacktrack -jefkzp "nicotine-1.2.4.1-noarch-1rha.tgz" "./nicotine.build" -# - -CWD="`pwd`" - -if [ -f "/etc/slackbuildrc" ]; then - source /etc/slackbuildrc -fi - -if [ -f "~/.slackbuildrc" ]; then - source ~/.slackbuildrc -fi - -# default settings -PACKAGE="nicotine" -VERSION=${VERSION:=1.0.8} -ARCH=${ARCH:=i486} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} - -RTOOL="wget" -PACKAGE_EXT="bz2" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://nicotine.thegraveyard.org/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" - -if [ ! -d "$SRC_DIR" ]; then - mkdir -p $SRC_DIR -fi - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -TMP="$TMP/$PACKAGE" - -if [ ! -d "$TMP" ]; then - mkdir -p $TMP -fi - -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -cd $PACKAGE-$VERSION - -python setup.py install --prefix=/usr - -CWD="`pwd`" - -mkdir /install - -cat << EOF > /install/slack-desc -# 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-----------------------------------------------------| -nicotine: nicotine (soulseek client clone) -nicotine: -nicotine: Nicotine is a SoulSeek client written in Python, based on the -nicotine: PySoulSeek project by Alexander Kanavin. It features, among other -nicotine: things, a completely rewritten graphical user interface which uses -nicotine: the PyGTK-2 toolkit and a less strict user request policy. -nicotine: -nicotine: -nicotine: -nicotine: -nicotine: -EOF - -# docs -mkdir -p /usr/doc/$PACKAGE-$VERSION - -for file in CHANGELOG COPYING INSTALL KNOWN_BUGS MAINTAINERS MANIFEST PKG-INFO README README.import-winconfig TODO TRANSLATORS; do - cp $CWD/$file* /usr/doc/$PACKAGE-$VERSION/ -done - diff --git a/nicotine/slack-required b/nicotine/slack-required deleted file mode 100644 index d01ef22f..00000000 --- a/nicotine/slack-required +++ /dev/null @@ -1 +0,0 @@ -pygtk diff --git a/nspluginwrapper/nspluginwrapper.SlackBuild b/nspluginwrapper/nspluginwrapper.SlackBuild deleted file mode 100755 index 59102127..00000000 --- a/nspluginwrapper/nspluginwrapper.SlackBuild +++ /dev/null @@ -1,121 +0,0 @@ -#!/bin/bash -# -# slackbuild script for nspluginwrapper -# by rhatto at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building nspluginwrapper are: - cat slack-required | sed -e 's/^/\t/' - if [ "$INTERACT" != "no" ]; then - echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. - read crap -# else -# echo Sleeping 3 seconds... -# sleep 3 - fi -fi - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="nspluginwrapper" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=0.9.90.1} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - export LDFLAGS="-L/lib64 -L/usr/lib64" - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -# ------- error codes for createpkg -------------- -ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 -ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 -ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 -ERROR_PATCH=40 - -RTOOL="wget" -PACKAGE_EXT="bz2" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://www.gibix.net/projects/nspluginwrapper/files/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH -fi - -./configure --prefix=/usr --with-lib=$LIBDIR || exit $ERROR_CONF -make || exit $ERROR_MAKE -make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > install/slack-desc -# 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-----------------------------------------------------| -nspluginwrapper: nspluginwrapper -nspluginwrapper: -nspluginwrapper: nspluginwrapper is an Open Source compatibility plugin for Netscape -nspluginwrapper: 4 (NPAPI) plugins. That is, it enables you to use plugins on -nspluginwrapper: platforms they were not built for. For example, you can use the -nspluginwrapper: Adobe Flash plugin with x86-64 compiled Mozilla browsers. -nspluginwrapper: -nspluginwrapper: -nspluginwrapper: -nspluginwrapper: -nspluginwrapper: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -DOCS="COPYING NEWS README TODO" - -for file in $DOCS; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/opal/opal.SlackBuild b/opal/opal.SlackBuild deleted file mode 100755 index c9c495c3..00000000 --- a/opal/opal.SlackBuild +++ /dev/null @@ -1,111 +0,0 @@ -#!/bin/bash -# -# slackbuild script for opal -# by rafael at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building pwlib are: - cat slack-required | sed -e 's/^/\t/' - if [ "$INTERACT" != "no" ]; then - echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. - read crap -# else -# echo Sleeping 3 seconds... -# sleep 3 - fi -fi - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="opal" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=2.2.3} -BUILD=${BUILD:=1rd} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://www.ekiga.org/admin/downloads/latest/sources/sources/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff -fi - -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --with-docdir=/usr/doc/$PACKAGE-$VERSION -make || exit 32 -make DESTDIR=$TMP/package-$PACKAGE install - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > install/slack-desc -# 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-----------------------------------------------------| -opal: opal (Opal is a library for VoIP protocols) -opal: -opal: -opal: -opal: -opal: -opal: -opal: -opal: -opal: -opal: -EOF - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/opal/slack-required b/opal/slack-required deleted file mode 100644 index de907ed8..00000000 --- a/opal/slack-required +++ /dev/null @@ -1 +0,0 @@ -pwlib diff --git a/openexr/openexr.SlackBuild b/openexr/openexr.SlackBuild deleted file mode 100755 index ca025d21..00000000 --- a/openexr/openexr.SlackBuild +++ /dev/null @@ -1,124 +0,0 @@ -#!/bin/bash -# -# slackbuild script for OpenEXR -# by rafael at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building OpenEXR are: - cat slack-required | sed -e 's/^/\t/' - if [ "$INTERACT" != "no" ]; then - echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. - read crap -# else -# echo Sleeping 3 seconds... -# sleep 3 - fi -fi - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="openexr" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=1.4.0a} -BUILD=${BUILD:=1rd} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://download.savannah.nongnu.org/releases/openexr/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC - -# small hack for version 1.4.0 -if [ "$VERSION" == "1.4.0a" ]; then - mv openexr-1.4.0 openexr-1.4.0a -fi - -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff -fi - -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --with-docdir=/usr/doc/$PACKAGE-$VERSION -make || exit 32 -make DESTDIR=$TMP/package-$PACKAGE install - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > install/slack-desc -# 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-----------------------------------------------------| -openexr: OpenEXR (OpenEXR set of libraries for higher color fidelity images) -openexr: -openexr: OpenEXR supports several lossless compression methods, some of which -openexr: can achieve compression ratios of about 2:1 for images with film -openexr: grain. OpenEXR is extensible, so developers can easily add new -openexr: compression methods (lossless or lossy). -openexr: -openexr: -openexr: -openexr: http://www.openexr.com/ -openexr: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README;do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/openldap/openldap-client.SlackBuild b/openldap/openldap-client.SlackBuild deleted file mode 100755 index b2e49184..00000000 --- a/openldap/openldap-client.SlackBuild +++ /dev/null @@ -1,123 +0,0 @@ -#!/bin/bash -# -# slackbuild script for openldap-client -# - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="openldap-client" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=2.3.24} -BUILD=${BUILD:=2rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="tgz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -KEY="http://www.courier-mta.org/KEYS.bin" -SRC="openldap-$VERSION.$PACKAGE_EXT" -#URL="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$SRC" -URL="http://public.planetmirror.com/pub/openldap/openldap-release/$SRC" - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -SRC_DIR="$SRC_DIR/openldap" -mkdir -p $SRC_DIR - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR="/usr/lib64" -else - LIBDIR="/usr/lib" -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -mv openldap-$VERSION $PACKAGE-$VERSION -cd $PACKAGE-$VERSION - -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --without-kerberos \ - --without-cyrus-sasl --without-tls --without-threads --disable-slapd --disable-slurpd - -make depend -make || exit 32 -make DESTDIR=$TMP/package-$PACKAGE install - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > install/slack-desc -# 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-----------------------------------------------------| -openldap-client: openldap-client (LDAP application client) -openldap-client: -openldap-client: The OpenLDAP Project is a collaborative effort to provide a robust, -openldap-client: commercial-grade, fully featured, open source LDAP software suite. -openldap-client: The project is managed by a worldwide community of volunteers that -openldap-client: use the Internet to communicate, plan, and develop OpenLDAP Software -openldap-client: and its related documentation. OpenLDAP Software provides a complete -openldap-client: LDAP implementation including server, clients, C SDK, and associated -openldap-client: tools. -openldap-client: -openldap-client: -EOF - -# configs -if [ -f "etc/openldap/ldap.conf" ]; then - mv etc/openldap/ldap.conf etc/openldap/ldap.conf.new -fi - -if [ -f "etc/openldap/slapd.conf" ]; then - mv etc/openldap/slapd.conf etc/openldap/slapd.conf.new -fi - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in ANNOUNCEMENT CHANGES COPYRIGHT INSTALL LICENSE README; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/openldap/openldap.SlackBuild b/openldap/openldap.SlackBuild deleted file mode 100755 index 1cb6ee6c..00000000 --- a/openldap/openldap.SlackBuild +++ /dev/null @@ -1,135 +0,0 @@ -#!/bin/bash -# -# slackbuild script for openldap -# by rhatto at riseup.net -# - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="openldap" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=2.3.24} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="tgz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -KEY="http://www.courier-mta.org/KEYS.bin" -SRC="$PACKAGE-$VERSION.$PACKAGE_EXT" -#URL="ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$SRC" -URL="http://public.planetmirror.com/pub/openldap/openldap-release/$SRC" - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR="/usr/lib64" -else - LIBDIR="/usr/lib" -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -cd $PACKAGE-$VERSION - -# otherwise will not work -DBINC="`ls -l /usr/include/db.h | awk '{ print $10 }'`" -if [ ! -f "$DBINC" ]; then - cp /usr/include/db.h db.h.save -fi - -ln -sf /usr/include/db4/db.h /usr/include/db.h - -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR -make depend -make || exit 32 -make DESTDIR=$TMP/package-$PACKAGE install - -# fix your system -if [ ! -f "$DBINC" ]; then - cp db.h.save /usr/include/db.h -else - ln -sf $DBINC /usr/include/db.h -fi - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 - -mkdir install -cat << EOF > install/slack-desc -# 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-----------------------------------------------------| -openldap: openldap (LDAP suite of applications and development tools) -openldap: -openldap: The OpenLDAP Project is a collaborative effort to provide a robust, -openldap: commercial-grade, fully featured, open source LDAP software suite. -openldap: The project is managed by a worldwide community of volunteers that -openldap: use the Internet to communicate, plan, and develop OpenLDAP Software -openldap: and its related documentation. OpenLDAP Software provides a complete -openldap: LDAP implementation including server, clients, C SDK, and associated -openldap: tools. -openldap: -openldap: -EOF - -# configs -mv etc/openldap/ldap.conf etc/openldap/ldap.conf.new -mv etc/openldap/slapd.conf etc/openldap/slapd.conf.new - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in ANNOUNCEMENT CHANGES COPYRIGHT INSTALL LICENSE README; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -# install script -echo '( if [ ! -f "etc/openldap/ldap.conf" ]; then mv etc/openldap/ldap.conf.new etc/openldap/ldap.conf; fi )' > install/doinst.sh -echo '( if [ ! -f "etc/openldap/slapd.conf" ]; then mv etc/openldap/slapd.conf.new etc/openldap/slapd.conf; fi )' >> install/doinst.sh - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/postfix/postfix-anon-2.2.10.diff b/postfix/postfix-anon-2.2.10.diff deleted file mode 100644 index 056c2200..00000000 --- a/postfix/postfix-anon-2.2.10.diff +++ /dev/null @@ -1,66 +0,0 @@ -diff -Naur no_alter/postfix-2.2.10/src/smtpd/smtpd.c postfix-2.2.10/src/smtpd/smtpd.c ---- no_alter/postfix-2.2.10/src/smtpd/smtpd.c 2005-11-28 20:32:41.000000000 -0200 -+++ postfix-2.2.10/src/smtpd/smtpd.c 2006-06-07 16:51:59.000000000 -0300 -@@ -858,6 +858,7 @@ - char *var_smtpd_sasl_appname; - char *var_smtpd_sasl_realm; - char *var_smtpd_sasl_exceptions_networks; -+int sasl_authenticated; - char *var_filter_xport; - bool var_broken_auth_clients; - char *var_perm_mx_networks; -@@ -1945,10 +1946,14 @@ - * intermediate proxy. - */ - if (!state->proxy || state->xforward.flags == 0) { -+ if (sasl_authenticated == 1) { -+ out_fprintf(out_stream, REC_TYPE_NORM, "Received: from localhost (localhost [127.0.0.1])"); -+ } else { - out_fprintf(out_stream, REC_TYPE_NORM, - "Received: from %s (%s [%s])", - state->helo_name ? state->helo_name : state->name, - state->name, state->rfc_addr); -+ } - #ifdef USE_TLS - if (var_smtpd_tls_received_header && state->tls_context) { - out_fprintf(out_stream, REC_TYPE_NORM, -diff -Naur no_alter/postfix-2.2.10/src/smtpd/smtpd_sasl_proto.c postfix-2.2.10/src/smtpd/smtpd_sasl_proto.c ---- no_alter/postfix-2.2.10/src/smtpd/smtpd_sasl_proto.c 2004-12-10 23:16:39.000000000 -0200 -+++ postfix-2.2.10/src/smtpd/smtpd_sasl_proto.c 2006-06-07 16:54:44.000000000 -0300 -@@ -118,6 +118,8 @@ - - #ifdef USE_SASL_AUTH - -+int sasl_authenticated; -+ - /* smtpd_sasl_auth_cmd - process AUTH command */ - - int smtpd_sasl_auth_cmd(SMTPD_STATE *state, int argc, SMTPD_TOKEN *argv) -@@ -126,6 +128,7 @@ - char *initial_response; - char *err; - -+ sasl_authenticated = 0; - if (var_helo_required && state->helo_name == 0) { - state->error_mask |= MAIL_ERROR_POLICY; - smtpd_chat_reply(state, "503 Error: send HELO/EHLO first"); -@@ -169,6 +172,7 @@ - return (-1); - } - smtpd_chat_reply(state, "235 Authentication successful"); -+ sasl_authenticated = 1; - return (0); - } - -diff -Naur no_alter/postfix-2.2.10/src/smtpd/smtpd_sasl_proto.h postfix-2.2.10/src/smtpd/smtpd_sasl_proto.h ---- no_alter/postfix-2.2.10/src/smtpd/smtpd_sasl_proto.h 2000-03-16 16:34:58.000000000 -0300 -+++ postfix-2.2.10/src/smtpd/smtpd_sasl_proto.h 2006-06-07 16:55:29.000000000 -0300 -@@ -17,6 +17,8 @@ - extern void smtpd_sasl_mail_log(SMTPD_STATE *); - extern void smtpd_sasl_mail_reset(SMTPD_STATE *); - -+extern int sasl_authenticated; -+ - /* LICENSE - /* .ad - /* .fi diff --git a/postfix/postfix-anon-2.2.3.diff b/postfix/postfix-anon-2.2.3.diff deleted file mode 100644 index fc1321fc..00000000 --- a/postfix/postfix-anon-2.2.3.diff +++ /dev/null @@ -1,63 +0,0 @@ ---- no_alter/postfix-2.2.3/src/smtpd/smtpd.c 2005-03-09 20:07:43.000000000 +0000 -+++ postfix-2.2.3/src/smtpd/smtpd.c 2005-05-31 14:15:50.000000000 +0000 -@@ -858,6 +858,7 @@ - char *var_smtpd_sasl_appname; - char *var_smtpd_sasl_realm; - char *var_smtpd_sasl_exceptions_networks; -+int sasl_authenticated; - char *var_filter_xport; - bool var_broken_auth_clients; - char *var_perm_mx_networks; -@@ -1947,10 +1948,14 @@ - * intermediate proxy. - */ - if (!state->proxy || state->xforward.flags == 0) { -+ if (sasl_authenticated == 1) { -+ out_fprintf(out_stream, REC_TYPE_NORM, "Received: from localhost (localhost [127.0.0.1])"); -+ } else { - out_fprintf(out_stream, REC_TYPE_NORM, - "Received: from %s (%s [%s])", - state->helo_name ? state->helo_name : state->name, - state->name, state->rfc_addr); -+ } - #ifdef USE_TLS - if (var_smtpd_tls_received_header && state->tls_context) { - out_fprintf(out_stream, REC_TYPE_NORM, ---- no_alter/postfix-2.2.3/src/smtpd/smtpd_sasl_proto.c 2004-12-11 01:16:39.000000000 +0000 -+++ postfix-2.2.3/src/smtpd/smtpd_sasl_proto.c 2005-05-31 14:17:47.000000000 +0000 -@@ -118,6 +118,8 @@ - - #ifdef USE_SASL_AUTH - -+int sasl_authenticated; -+ - /* smtpd_sasl_auth_cmd - process AUTH command */ - - int smtpd_sasl_auth_cmd(SMTPD_STATE *state, int argc, SMTPD_TOKEN *argv) -@@ -126,6 +128,7 @@ - char *initial_response; - char *err; - -+ sasl_authenticated = 0; - if (var_helo_required && state->helo_name == 0) { - state->error_mask |= MAIL_ERROR_POLICY; - smtpd_chat_reply(state, "503 Error: send HELO/EHLO first"); -@@ -169,6 +172,7 @@ - return (-1); - } - smtpd_chat_reply(state, "235 Authentication successful"); -+ sasl_authenticated = 1; - return (0); - } - ---- no_alter/postfix-2.2.3/src/smtpd/smtpd_sasl_proto.h 2000-03-16 19:34:58.000000000 +0000 -+++ postfix-2.2.3/src/smtpd/smtpd_sasl_proto.h 2005-05-31 14:18:20.000000000 +0000 -@@ -17,6 +17,8 @@ - extern void smtpd_sasl_mail_log(SMTPD_STATE *); - extern void smtpd_sasl_mail_reset(SMTPD_STATE *); - -+extern int sasl_authenticated; -+ - /* LICENSE - /* .ad - /* .fi diff --git a/postfix/postfix.SlackBuild b/postfix/postfix.SlackBuild deleted file mode 100755 index 56a61586..00000000 --- a/postfix/postfix.SlackBuild +++ /dev/null @@ -1,191 +0,0 @@ -#!/bin/bash -# -# original script from http://www.slacky.it/download/network/tool/postfix/2.2.10/src/postfix.SlackBuild -# changes by rhatto at riseup.net -# -# TODO: atualizar para o postfix 2.3.0 -# slack-required -# arrumar pasta de construcao -# - -cat << EOECHO -To build postfix with full capabilities (pcre, mysql, sasl, tls, ldap, vda and -postfix-anon support, first build/install the following packages: - - db3 and/or db4 - libgpg-error - libgcrypt - courier-authlib - courier-imap - gnutls - cyrus-sasl - openldap-client - -EOECHO - -if [ "$INTERACT" != "no" ]; then - echo "Hit ENTER do continue, Crtl-C to abort" - read crap -else - echo sleeping 3 seconds... - sleep 3 -fi - -CWD=`pwd` - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE=postfix -ARCH=${ARCH:=i486} -VERSION=${VERSION:=2.2.11} -BUILD=${BUILD:=2rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -# general definitions -PACKAGE_EXT="gz" -NAME=$PACKAGE -DOCDIR=/usr/doc/${NAME}-${VERSION} -READMEDIR=${DOCDIR}/README_FILES -HTMLDIR=${DOCDIR}/HTML -MANDIR=/usr/man -TMP="$TMP/$PACKAGE" -PKGDIR=${TMP}/package-${NAME} -SOURCEDIR=${TMP}/${NAME}-${VERSION} -RTOOL="wget" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" - -# url definitions -VDA="$PACKAGE-$VERSION-vda.patch.gz" -VDA_URL="http://web.onda.com.br/nadal/postfix/VDA/$VDA" -ANON="postfix-anon-$VERSION.diff" -URL="ftp://ftp.pucpr.br/$PACKAGE/official/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -# download sources -if [ "$RTOOL" == "wget" ]; then - if [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" - fi - if [ ! -f "$SRC_DIR/$VDA" ]; then - wget "$VDA_URL" -O "$SRC_DIR/$VDA" - fi - if [ ! -f "$SRC_DIR/$SRC.sig" ]; then - wget "$URL.sig" -O "$SRC_DIR/$SRC.sig" - fi -fi - -rm -rf ${PKGDIR} -mkdir -p ${PKGDIR} - -cd ${PKGDIR} -# install scripts - -if [ -e ${CWD}/script_${NAME}.tgz ]; then - tar zxvf ${CWD}/script_${NAME}.tgz -else - mkdir -v install -fi -sleep 1 -if [ -e ${CWD}/slack-desc ];then - cat ${CWD}/slack-desc | grep ^${NAME} > ${PKGDIR}/install/slack-desc -fi - -# Extract - -cd ${TMP} -rm -rf ${NAME}-${VERSION} ${SOURCEDIR} -tar xzvf $SRC_DIR/${NAME}-$VERSION.tar.gz -# Patch - -if [ -f "$SRC_DIR/$VDA" ]; then - gzip -dc $SRC_DIR/$VDA | patch -p0 -fi - -if [ -f "$CWD/$ANON" ]; then - patch -p0 < $CWD/$ANON -fi - -cd ${SOURCEDIR} -sleep 1 - -# Build - -# make -f Makefile.init makefiles \ -# 'CCARGS=-DUSE_TLS -DHAS_SSL -I/usr/include/openssl -DHAS_MYSQL -I/usr/include/mysql' \ -# 'AUXLIBS=-L/usr/lib -lssl -lcrypto -L/usr/lib/mysql -lmysqlclient -lz -lm' - -# db3 explicit -# make -f Makefile.init makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/include/sasl/ -DHAS_MYSQL -I/usr/include/mysql/ -I/usr/include -DHAS_LDAP -DUSE_TLS -I/usr/include/gnutls/ -DHAS_PCRE -I/usr/include -DHAS_DB -I/usr/include/db3" AUXLIBS="-L/usr/lib -lsasl2 -L/usr/lib/mysql/ -lmysqlclient -lz -lm -L/usr/lib -lssl -lcrypto -L/usr/lib -lpcre -L/usr/lib -lldap -L/usr/lib -llber -L/usr/include/db3 -ldb3" - -make -f Makefile.init makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/include/sasl/ -DHAS_MYSQL -I/usr/include/mysql/ -I/usr/include -DHAS_LDAP -DUSE_TLS -I/usr/include/gnutls/ -DHAS_PCRE -I/usr/include" AUXLIBS="-L/usr/lib -lsasl2 -L/usr/lib/mysql/ -lmysqlclient -lz -lm -L/usr/lib -lssl -lcrypto -L/usr/lib -lpcre -L/usr/lib -lldap -L/usr/lib -llber" - -make || exit 32 -sleep 1 - -sh postfix-install \ - install_root=${PKGDIR} \ - tempdir=${SOURCE} \ - manpage_directory=${MANDIR} \ - readme_directory=${READMEDIR} \ - html_directory=${HTMLDIR} \ - config_directory=/etc/postfix \ - sample_directory=/etc/postfix/sample \ - daemon_directory=/usr/libexec/postfix \ - command_directory=/usr/sbin/ \ - queue_directory=/var/spool/postfix \ - sendmail_path=/usr/sbin/sendmail \ - newaliases_path=/usr/sbin/newaliases \ - mailq_path=/usr/sbin/mailq \ - mail_owner=postfix \ - setgid_group=postdrop \ - -non-interactive - -cd ${PKGDIR}/etc/postfix - -for a in access aliases canonical header_checks main.cf makedefs.out master.cf postfix-files relocated transport virtual; do - mv ${a} ${a}.new -done - -sleep 2 - -mkdir -p ${PKGDIR}/${DOCDIR} - -for file in AUTHORS COPYING HACKING NEWS README TODO INSTALL AAAREADME COMPATIBILITY COPYRIGHT HISTORY LICENSE RELEASE_NOTES* TLS_* US_PATENT_6321267; do - if [ -e "${SOURCEDIR}/${file}" ]; then - cp -v ${SOURCEDIR}/${file} ${PKGDIR}/${DOCDIR}/ - fi -done - -( cd $PKGDIR - 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 -) - -find ${PKGDIR}/${DOCDIR} ${PKGDIR}/${MANDIR} -type f | xargs gzip -v - -find ${PKGDIR}/bin ${PKGDIR}/sbin ${PKGDIR}/usr/bin ${PKGDIR}/usr/sbin -type f | xargs chown -v root.bin -# Build the package: -cd $PKGDIR -#requiredbuilder -v -y -s $CWD $PKGDIR -/sbin/makepkg -l n -c n --prepend $REPOS/${NAME}-${VERSION}-${ARCH}-${BUILD}.tgz - -# Clean up the extra stuff: -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/postfix/script_postfix.tgz b/postfix/script_postfix.tgz deleted file mode 100644 index ec5f621e..00000000 Binary files a/postfix/script_postfix.tgz and /dev/null differ diff --git a/postfix/slack-desc b/postfix/slack-desc deleted file mode 100644 index b81e3bb6..00000000 --- a/postfix/slack-desc +++ /dev/null @@ -1,20 +0,0 @@ -# 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------------------------------------------------------| -postfix: Postfix (an alternative to the widely-used Sendmail program.) -postfix: -postfix: Postfix attempts to be fast, easy to administer, and secure, while at -postfix: the same time being sendmail compatible enough to not upset existing -postfix: users. Thus, the outside has a sendmail-ish flavor, but the inside is -postfix: completely different. -postfix: -postfix: This is postfix compiled with pcre, mysql, sasl, tls, ldap and -postfix: patched with VDA and postfix-anon. -postfix: -postfix: - diff --git a/postfix/slack-required b/postfix/slack-required deleted file mode 100644 index aaa0073c..00000000 --- a/postfix/slack-required +++ /dev/null @@ -1,5 +0,0 @@ -glibc-solibs >= 2.3.5-i486-5 -mysql >= 4.1.14-i486-1 -openssl >= 0.9.7g-i486-2 | openssl-solibs >= 0.9.7g-i486-2 -pcre >= 6.4-i486-1 -zlib >= 1.2.3-i486-1 -- cgit v1.2.3