diff options
author | Deposite Pirate | 2018-09-16 18:48:36 +0200 |
---|---|---|
committer | Deposite Pirate | 2018-09-16 18:48:36 +0200 |
commit | d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 (patch) | |
tree | ce5e44d69c5f3175bfdbd1e3717b52c5dcca5638 /network_daemons | |
parent | f29d3519ce073ec30f99754d93304324f7f26d65 (diff) |
Add ports.
Diffstat (limited to 'network_daemons')
62 files changed, 1228 insertions, 0 deletions
diff --git a/network_daemons/apache/apache.build b/network_daemons/apache/apache.build new file mode 100755 index 0000000..5038f99 --- /dev/null +++ b/network_daemons/apache/apache.build @@ -0,0 +1,178 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd> + +source /usr/src/ports/Build/build.sh + +NAME=apache +VERSION=2.4.4 +BUILD=2 +DEPENDS=('apr >= 1.4.6-1' 'expat >= 2.1.0-1' 'pcre >= 8.32-1') +OPTDEPENDS=('file >= 5.14-1' 'openssl >= 1.0.1e-1' 'lua >= 5.2.2-1') + +# Description + +cat > ${PKG}/install/slack-desc <<EOF +# 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 ':'. + +$(padd)|-----handy-ruler------------------------------------------------------| +${NAME}: apache (The Apache HTTP Server) +${NAME}: +${NAME}: Apache is an HTTP server designed as a plug-in replacement for the +${NAME}: NCSA HTTP server. It fixes numerous bugs in the NCSA server and +${NAME}: includes many frequently requested new features, and has an API which +${NAME}: allows it to be extended to meet users' needs more easily. +${NAME}: +${NAME}: Apache is the most popular web server in the known universe; over +${NAME}: half of the servers on the Internet are running Apache or one of +${NAME}: its variants. +${NAME}: +EOF + +cat >> ${PKG}/install/doinst.sh <<EOF +#!/bin/sh + +config() { + NEW="\$1" + OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r \$OLD ]; then + mv \$NEW \$OLD + elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then + # toss the redundant copy + rm \$NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +# If the apache user and group do not exist, add them + +if grep "^apache:x:" etc/passwd 1> /dev/null 2> /dev/null ; then + true +else + echo "apache:x:80:80:Apache:/srv/www:/bin/false" >> etc/passwd +fi +if grep "^apache:x:" etc/group 1> /dev/null 2> /dev/null ; then + true +else + echo "apache:x:80:" >> etc/group +fi +if grep "^apache:" etc/shadow 1> /dev/null 2> /dev/null ; then + true +else + echo "apache:*:9797:0:::::" >> etc/shadow +fi + +# Create apache's run directory if it isn't there + +if [ ! -d run/apache ]; then + install -m 0755 -d run/apache +fi + +config etc/rc.d/rc.httpd.new +config etc/logrotate.d/apache.new + +# Now copy the Apache config files into place if there are not existing copies: + +for cfgfile in httpd.conf magic mime.types; do + if [ ! -f etc/apache/\${cfgfile} ]; then + cp -a etc/apache/\${cfgfile}.default etc/apache/\${cfgfile} + fi +done +EOF + +# Sources + +SRCNAME[0]=httpd +SRCVERS[0]=${VERSION} +SRCPACK[0]=http://www.apache.org/dist/httpd/${SRCNAME[0]}-${SRCVERS[0]}.tar.bz2 + +configure() +{ +CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ +./configure \ + --build="${ARCH}-slackware-linux" \ + --enable-so \ + --with-mpm=worker \ + --enable-layout=Slackware \ + --enable-mpms-shared=all \ + --enable-mods-shared=all \ + --enable-modules=all \ + --enable-pie \ + --enable-ssl \ + --enable-dbd \ + --enable-cgi \ + --enable-cgid \ + --enable-deflate \ + --enable-rewrite \ + --enable-vhost-alias \ + --enable-proxy \ + --enable-proxy-http \ + --enable-proxy-ftp \ + --enable-proxy-connect \ + --enable-cache \ + --enable-mem-cache \ + --enable-file-cache \ + --enable-disk-cache \ + --enable-authn-anon \ + --enable-authn-dbd \ + --enable-authn-dbm \ + --enable-authz-dbd \ + --enable-authz-dbm \ + --enable-dav-fs \ + --disable-ldap \ + --with-libxml2 \ + --with-pcre="${SYS_DIR[usr]}" + ${*} + # --enable-ldap \ + # --enable-authnz-ldap \ + # --enable-lua \ + # --enable-luajit \ +} + +build0() +{ +sed -e 's|User daemon|User apache|g' \ + -e 's|Group daemon|Group apache|g' \ + -i docs/conf/httpd.conf.in +configure +make ${JOBS} +make install DESTDIR="${PKG}" +doc ABOUT_APACHE README +changelog CHANGES +license LICENSE +install.dir ${PKG}${SYS_DIR[etc]}/{rc.d,tmpfiles.d,logrotate.d} +install.bin rc.httpd.new ${PKG}${SYS_DIR[etc]}/rc.d +install.cfg apache.conf.tmpfiles ${PKG}${SYS_DIR[etc]}/tmpfiles.d/apache.conf +install.cfg apache.logrotate ${PKG}${SYS_DIR[etc]}/logrotate.d/apache.new +install.dir ${PKG}${SYS_DIR[systemdsystemunitdir]} +install.cfg apache.service ${PKG}${SYS_DIR[systemdsystemunitdir]} +mv \ + ${PKG}${SYS_DIR[etc]}/apache/httpd.conf \ + ${PKG}${SYS_DIR[etc]}/apache/httpd.conf.default +mv \ + ${PKG}${SYS_DIR[etc]}/apache/mime.types \ + ${PKG}${SYS_DIR[etc]}/apache/mime.types.default +mv \ + ${PKG}${SYS_DIR[etc]}/apache/magic \ + ${PKG}${SYS_DIR[etc]}/apache/magic.default +rm -rf \ + ${PKG}${SYS_DIR[run]} +sed \ + -e 's|#\(LoadModule negotiation_module \)|\1|' \ + -e 's|#\(LoadModule include_module \)|\1|' \ + -e 's|#\(LoadModule userdir_module \)|\1|' \ + -e 's|#\(LoadModule slotmem_shm_module \)|\1|' \ + -e 's|#\(Include /etc/apache/extra/httpd-multilang-errordoc.conf\)|\1|' \ + -e 's|#\(Include /etc/apache/extra/httpd-autoindex.conf\)|\1|' \ + -e 's|#\(Include /etc/apache/extra/httpd-languages.conf\)|\1|' \ + -e 's|#\(Include /etc/apache/extra/httpd-userdir.conf\)|\1|' \ + -e 's|#\(Include /etc/apache/extra/httpd-default.conf\)|\1|' \ + -e 's|#\(Include /etc/apache/extra/httpd-mpm.conf\)|\1|' \ + -i ${PKG}${SYS_DIR[etc]}/apache/httpd.conf.default +} diff --git a/network_daemons/apache/httpd-2.4.4-layout.patch.xz b/network_daemons/apache/httpd-2.4.4-layout.patch.xz Binary files differnew file mode 100644 index 0000000..e068367 --- /dev/null +++ b/network_daemons/apache/httpd-2.4.4-layout.patch.xz diff --git a/network_daemons/apache/httpd-2.4.4-logrotate.patch.xz b/network_daemons/apache/httpd-2.4.4-logrotate.patch.xz Binary files differnew file mode 100644 index 0000000..aeaf786 --- /dev/null +++ b/network_daemons/apache/httpd-2.4.4-logrotate.patch.xz diff --git a/network_daemons/apache/httpd-2.4.4-php.patch.xz b/network_daemons/apache/httpd-2.4.4-php.patch.xz Binary files differnew file mode 100644 index 0000000..0e67062 --- /dev/null +++ b/network_daemons/apache/httpd-2.4.4-php.patch.xz diff --git a/network_daemons/apache/httpd-2.4.4-service.patch.xz b/network_daemons/apache/httpd-2.4.4-service.patch.xz Binary files differnew file mode 100644 index 0000000..b330a99 --- /dev/null +++ b/network_daemons/apache/httpd-2.4.4-service.patch.xz diff --git a/network_daemons/apache/httpd-2.4.4-sysvinit.patch.xz b/network_daemons/apache/httpd-2.4.4-sysvinit.patch.xz Binary files differnew file mode 100644 index 0000000..48a3ed0 --- /dev/null +++ b/network_daemons/apache/httpd-2.4.4-sysvinit.patch.xz diff --git a/network_daemons/apache/httpd-2.4.4-tmpfilesd.patch.xz b/network_daemons/apache/httpd-2.4.4-tmpfilesd.patch.xz Binary files differnew file mode 100644 index 0000000..c84d193 --- /dev/null +++ b/network_daemons/apache/httpd-2.4.4-tmpfilesd.patch.xz diff --git a/network_daemons/chrony/chrony-1.26-slackware.patch.xz b/network_daemons/chrony/chrony-1.26-slackware.patch.xz Binary files differnew file mode 100644 index 0000000..5bf58bd --- /dev/null +++ b/network_daemons/chrony/chrony-1.26-slackware.patch.xz diff --git a/network_daemons/chrony/chrony.build b/network_daemons/chrony/chrony.build new file mode 100755 index 0000000..734e172 --- /dev/null +++ b/network_daemons/chrony/chrony.build @@ -0,0 +1,62 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd> + +source /usr/src/ports/Build/build.sh + +NAME=chrony +VERSION=1.26 +BUILD=1 + +# Description + +cat > ${PKG}/install/slack-desc <<EOF +# 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 ':'. + +$(padd)|-----handy-ruler------------------------------------------------------| +${NAME}: chrony (time daemon) +${NAME}: +${NAME}: Chrony is a pair of programs for maintaining the accuracy of computer +${NAME}: clocks. Chronyd is a daemon program that can be started at boot time +${NAME}: whose main function is to obtain measurements of the true (UTC) time +${NAME}: from one of several sources, and correct the system clock +${NAME}: accordingly. It understand the NTP protocol both as a client and as +${NAME}: a server. Chronyc is a command-line interface program which can be +${NAME}: used to monitor and change the settings if chronyd whilst running. +${NAME}: +${NAME}: Homepage: http://chrony.tuxfamily.org +EOF + +# Sources + +SRCNAME[0]=${NAME} +SRCVERS[0]=${VERSION} +SRCPACK[0]=http://download.tuxfamily.org/${SRCNAME[0]}/${SRCNAME[0]}-${SRCVERS[0]}.tar.gz +SRCCOPY[0]="GPL2" + +build0() +{ +CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ +./configure \ + --prefix=/usr \ + --mandir="${SYS_DIR[man]}" \ + --docdir="${SYS_DIR[doc]}/${SRCNAME[0]}-${SRCVERS[0]}" \ + --sysconfdir=/etc/${NAME} +make -j 2 +make install DESTDIR="${PKG}" +changelog NEWS +install.dat doinst.sh ${PKG}/install +install.dir ${PKG}/var/log +install.dir ${PKG}/var/lib/chrony +install.dir ${PKG}/etc/chrony +install.cfg chrony.conf ${PKG}/etc/chrony/chrony.conf.new +install.dat examples/*.example* ${PKG}/etc/chrony +install.dir ${PKG}/etc/rc.d +install.cfg rc.chronyd ${PKG}/etc/rc.d/rc.chronyd.new +rm -f ${DOC}/COPYING +} diff --git a/network_daemons/dnsmasq/dnsmasq-2.49-heimdal.patch.bz2 b/network_daemons/dnsmasq/dnsmasq-2.49-heimdal.patch.bz2 Binary files differnew file mode 100644 index 0000000..df8c10d --- /dev/null +++ b/network_daemons/dnsmasq/dnsmasq-2.49-heimdal.patch.bz2 diff --git a/network_daemons/dnsmasq/dnsmasq-2.49-mandir.patch.bz2 b/network_daemons/dnsmasq/dnsmasq-2.49-mandir.patch.bz2 Binary files differnew file mode 100644 index 0000000..83d479f --- /dev/null +++ b/network_daemons/dnsmasq/dnsmasq-2.49-mandir.patch.bz2 diff --git a/network_daemons/dnsmasq/dnsmasq-2.49-paths.patch.bz2 b/network_daemons/dnsmasq/dnsmasq-2.49-paths.patch.bz2 Binary files differnew file mode 100644 index 0000000..cd4807e --- /dev/null +++ b/network_daemons/dnsmasq/dnsmasq-2.49-paths.patch.bz2 diff --git a/network_daemons/dnsmasq/dnsmasq-2.50-manpage.patch.xz b/network_daemons/dnsmasq/dnsmasq-2.50-manpage.patch.xz Binary files differnew file mode 100644 index 0000000..3ba7172 --- /dev/null +++ b/network_daemons/dnsmasq/dnsmasq-2.50-manpage.patch.xz diff --git a/network_daemons/dnsmasq/dnsmasq.SlackBuild b/network_daemons/dnsmasq/dnsmasq.SlackBuild new file mode 100755 index 0000000..561a046 --- /dev/null +++ b/network_daemons/dnsmasq/dnsmasq.SlackBuild @@ -0,0 +1,88 @@ +#!/bin/sh + +CWD=`pwd` +NAME=dnsmasq +VERSION=2.49 +ARCH=i586 +BUILD=1 +PKGNAME=$NAME +PKGVER=$VERSION +BASEDIR=$PKGNAME-$PKGVER +ARCHIVE=$BASEDIR.tar.gz +REPOSITORY=http://thekelleys.org.uk/dnsmasq +FLAGS="-O2 -march=pentium -mtune=pentium -fno-strength-reduce \ + -fomit-frame-pointer -ffast-math" +PKG=/tmp/package-$NAME + +rm -rf $PKG +mkdir -p $PKG + +# Obtain sources +if [ ! -e $ARCHIVE ]; then + if `wget "$REPOSITORY/$ARCHIVE"`; then + true + else + exit 1 + fi +fi + +# Compile +cd /tmp +tar zxvf $CWD/$ARCHIVE +cd $BASEDIR +bzcat $CWD/$NAME-$VERSION-heimdal.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-mandir.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-paths.patch.bz2 | patch -p1 -s +make CFLAGS="$FLAGS" PREFIX=/usr + +# Install +make install DESTDIR=$PKG PREFIX=/usr +mkdir -p $PKG/install $PKG/usr/doc/$NAME-$VERSION $PKG/var/lib/dnsmasq \ + $PKG/etc/{rc.d,conf.d,dnsmasq.d} +cat > $PKG/install/slack-desc <<EOF +# 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------------------------------------------------------| +dnsmasq: dnsmasq (small DNS and DHCP server) +dnsmasq: +dnsmasq: Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP +dnsmasq: server. It is designed to provide DNS (and optionally DHCP) to a +dnsmasq: small network, and can serve the names of local machines which are +dnsmasq: not in the global DNS. +dnsmasq: +dnsmasq: Dnsmasq was written by Simon Kelley. +dnsmasq: +dnsmasq: +dnsmasq: +EOF + +install -m644 -g0 -o0 doinst.sh $PKG/install + +install -m644 -g0 -o0 CHANGELOG FAQ *.html dnsmasq.conf.example \ + dbus/DBus-interface $PKG/usr/doc/$NAME-$VERSION + +gzip -9nf \ + $PKG/usr/doc/$NAME-$VERSION/CHANGELOG \ + $PKG/usr/doc/$NAME-$VERSION/FAQ \ + $PKG/usr/doc/$NAME-$VERSION/setup.html \ + $PKG/usr/doc/$NAME-$VERSION/dnsmasq.conf.example + +install -m644 -g0 -o0 dnsmasq.conf.example $PKG/etc/conf.d/dnsmasq.conf.new +install -m644 -g0 -o0 rc.dnsmasq.new $PKG/etc/rc.d + +chmod 444 $PKG/usr/man/man?/*.? +gzip -9nf $PKG/usr/man/man?/*.? + +strip $PKG/usr/sbin/* || : + +chown -R root.root $PKG + +# Make package +cd $PKG +cat install/slack-desc | grep "$NAME:" > /tmp/$NAME-$VERSION-$ARCH-$BUILD.txt +makepkg -l y -c n /tmp/$NAME-$VERSION-$ARCH-$BUILD.tgz diff --git a/network_daemons/dovecot/dovecot-1.0.3-slackware.patch.bz2 b/network_daemons/dovecot/dovecot-1.0.3-slackware.patch.bz2 Binary files differnew file mode 100644 index 0000000..f40ec82 --- /dev/null +++ b/network_daemons/dovecot/dovecot-1.0.3-slackware.patch.bz2 diff --git a/network_daemons/dovecot/dovecot.SlackBuild b/network_daemons/dovecot/dovecot.SlackBuild new file mode 100755 index 0000000..f8f07b4 --- /dev/null +++ b/network_daemons/dovecot/dovecot.SlackBuild @@ -0,0 +1,123 @@ +#!/bin/sh + +CWD=`pwd` +NAME=dovecot +VERSION=1.0.3 +ARCH=i586 +BUILD=1 +PKGNAME=$NAME +PKGVER=$VERSION +BASEDIR=$PKGNAME-$PKGVER +ARCHIVE=$BASEDIR.tar.gz +REPOSITORY=http://www.dovecot.org/releases/1.0 +FLAGS="-O2 -march=pentium -mtune=pentium -fno-strength-reduce \ + -fomit-frame-pointer -ffast-math" +PKG=/tmp/package-$NAME + +rm -rf $PKG +mkdir -p $PKG + +# Obtain sources +if [ ! -e $ARCHIVE ]; then + if `wget "$REPOSITORY/$ARCHIVE"`; then + true + else + exit 1 + fi +fi + +# Compile +cd /tmp +tar zxvf $CWD/$ARCHIVE +cd $BASEDIR +bzcat $CWD/$NAME-$VERSION-slackware.patch.bz2 | patch -p1 -s +CFLAGS=$FLAGS CXXFLAGS=$FLAGS ./configure \ + --enable-static=no \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-ssldir=/etc/ssl \ + --with-ssl=openssl \ + --enable-ipv6 \ + --with-shadow \ + --without-pam \ + --with-sql-drivers \ + --with-sql \ + --with-mysql \ + --with-sqlite +make + +# Install +make install prefix=$PKG/usr +mkdir -p $PKG/install $PKG/usr/doc $PKG/etc/rc.d \ + $PKG/var/run/dovecot/login +cat > $PKG/install/slack-desc <<EOF +# 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------------------------------------------------------| +dovecot: Dovecot +dovecot: +dovecot: Dovecot is an IMAP server written with security primarily in mind. +dovecot: Although it's written in C, it uses several coding techniques to +dovecot: avoid the most common pitfalls. Dovecot can work with standard mbox +dovecot: and maildir formats and is fully compatible with the UW-IMAP and +dovecot: Courier IMAP servers as well as with mail clients accessing +dovecot: mailboxes directly. +dovecot: +dovecot: +dovecot: +EOF + +cat > $PKG/install/slack-required <<EOF +openssl-solibs >= 0.9.8e-i486-1 +EOF + +mv $PKG/usr/share/doc/dovecot \ + $PKG/usr/doc/$NAME-$VERSION + +install -m0644 -g0 -o0 AUTHORS ChangeLog README NEWS TODO \ + dovecot-example.conf doc/*.cnf doc/*.conf doc/mkcert.sh \ + $PKG/usr/doc/$NAME-$VERSION + +gzip -9nf $PKG/usr/doc/$NAME-$VERSION/ChangeLog \ + $PKG/usr/doc/$NAME-$VERSION/NEWS \ + $PKG/usr/doc/$NAME-$VERSION/TODO \ + $PKG/usr/doc/$NAME-$VERSION/dovecot-example.conf + +( + cd $PKG/usr/doc/$NAME-$VERSION + mv wiki dovecot_docs + tar -c dovecot_docs > dovecot_docs.tar + gzip -9nf dovecot_docs.tar + rm -rf dovecot_docs +) + +rm -rf $PKG/usr/share $PKG/usr/include +rm -f \ + $PKG/usr/doc/$NAME-$VERSION/securecoding.txt \ + $PKG/etc/dovecot-example.conf \ + $PKG/usr/lib/dovecot/*.la \ + $PKG/usr/lib/dovecot/*/*.la + +install -m0644 rc.dovecot $PKG/etc/rc.d/rc.dovecot.new +install -m0644 dovecot.conf.slack $PKG/etc/dovecot-sample.conf +install -m0644 doinst.sh $PKG/install + +strip --strip-unneeded \ + $PKG/usr/lib/dovecot/*.so* ||: + +strip \ + $PKG/usr/libexec/dovecot/* \ + $PKG/usr/sbin/* ||: + +chown -R root.root $PKG + +# Make package +cd $PKG +cat install/slack-desc | grep "$NAME:" > /tmp/$NAME-$VERSION-$ARCH-$BUILD.txt +makepkg -l y -c n /tmp/$NAME-$VERSION-$ARCH-$BUILD.tgz diff --git a/network_daemons/exim/exim-4.43-heimdal.patch.bz2 b/network_daemons/exim/exim-4.43-heimdal.patch.bz2 Binary files differnew file mode 100644 index 0000000..2b28319 --- /dev/null +++ b/network_daemons/exim/exim-4.43-heimdal.patch.bz2 diff --git a/network_daemons/exim/exim.SlackBuild b/network_daemons/exim/exim.SlackBuild new file mode 100755 index 0000000..93da08d --- /dev/null +++ b/network_daemons/exim/exim.SlackBuild @@ -0,0 +1,128 @@ +#!/bin/sh + +CWD=`pwd` +NAME=exim +VERSION=4.43 +ARCH=i586 +BUILD=1 +PKGNAME=$NAME +PKGVER=$VERSION +BASEDIR=$PKGNAME-$PKGVER +ARCHIVE=$BASEDIR.tar.bz2 +#FAQ=FAQ.txt.gz +#SAMPLES=config.samples.tar.gz +REPOSITORY=ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4 +FLAGS="-O2 -march=pentium -mcpu=pentium -fno-strength-reduce \ + -fomit-frame-pointer -ffast-math" +PKG=/tmp/package-$NAME + +rm -rf $PKG +mkdir -p $PKG + +# Obtain sources +if [ ! -e $ARCHIVE ]; then + if `wget "$REPOSITORY/$ARCHIVE"`; then + true + else + exit 1 + fi +fi +#if [ ! -e $FAQ ]; then +# if `wget "$REPOSITORY/$FAQ"`; then +# true +# else +# exit 1 +# fi +#fi +#if [ ! -e $SAMPLES ]; then +# if `wget "$REPOSITORY/$SAMPLES"`; then +# true +# else +# exit 1 +# fi +#fi + + +# Compile +cd /tmp +tar jxvf $CWD/$ARCHIVE +cd $BASEDIR +bzcat $CWD/$NAME-$VERSION-heimdal.patch.bz2 | patch -p1 -s +make + +# Install +make install DESTDIR=$PKG +mkdir -p $PKG/install $PKG/usr/doc/$NAME-$VERSION $PKG/etc/rc.d \ + $PKG/etc/logrotate.d $PKG/var/spool/exim $PKG/var/log/exim $PKG/usr/man/man8 +cat > $PKG/install/slack-desc <<EOF +# 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------------------------------------------------------| +exim: exim (mail transfer agent) +exim: +exim: Exim is a full featured MTA (Mail Transport Agent) that is rather +exim: easy to configure compared to smail, sendmail and qmail. It is a +exim: drop-in replacement for sendmail/mailq/rsmtp. +exim: +exim: This particular package is compiled with TLS encryption (OpenSSL) +exim: and CRAM-MD5 SMTP authentication. +exim: +exim: +exim: +EOF + +cat > $PKG/install/slack-required <<EOF +openssl-solibs >= 0.9.7d-i486-1 +EOF + +install -m644 -g0 -o0 doinst.sh $PKG/install + +# Documentation +install -m444 -g0 -o0 doc/exim.8 $PKG/usr/man/man8 +( + cd doc + mv README README.doc + rm -f exim.8 +) +install -m644 -g0 -o0 ACKNOWLEDGMENTS LICENCE NOTICE README* \ + doc/* $PKG/usr/doc/$NAME-$VERSION + +gzip -9nf \ + $PKG/usr/doc/$NAME-$VERSION/ACKNOWLEDGMENTS \ + $PKG/usr/doc/$NAME-$VERSION/README* \ + $PKG/usr/doc/$NAME-$VERSION/LICENCE \ + $PKG/usr/doc/$NAME-$VERSION/ChangeLog \ + $PKG/usr/doc/$NAME-$VERSION/*.upgrade \ + $PKG/usr/doc/$NAME-$VERSION/*.txt \ + $PKG/usr/doc/$NAME-$VERSION/NewStuff + # don't forget faq / samples! + +#install -m644 -g0 -o0 $CWD/$FAQ $PKG/usr/doc/$NAME-$VERSION +#install -m644 -g0 -o0 $CWD/$SAMPLES $PKG/usr/doc/$NAME-$VERSION +# End Documentation + +# Configuration +install -m644 -g0 -o0 exim.logrotate $PKG/etc/logrotate.d/exim +install -m644 -g0 -o0 rc.exim $PKG/etc/rc.d/rc.exim.new +mv $PKG/etc/aliases $PKG/etc/aliases.sample +mv $PKG/etc/mail/exim.conf $PKG/etc/mail/exim.conf.sample +# End Configuration + +chmod 444 $PKG/usr/man/man?/*.? +gzip -9nf $PKG/usr/man/man?/*.? + +strip $PKG/usr/sbin/* || : + +chown -R root.root $PKG +chown mail.mail $PKG/var/spool/exim $PKG/var/log/exim +chgrp bin $PKG/usr/sbin/* $PKG/usr/sbin + +# Make package +cd $PKG +cat install/slack-desc | grep "$NAME:" > /tmp/$NAME-$VERSION-$ARCH-$BUILD.txt +makepkg -l y -c n /tmp/$NAME-$VERSION-$ARCH-$BUILD.tgz diff --git a/network_daemons/hostapd/hostapd-0.6.9-config.patch.bz2 b/network_daemons/hostapd/hostapd-0.6.9-config.patch.bz2 Binary files differnew file mode 100644 index 0000000..d34cb35 --- /dev/null +++ b/network_daemons/hostapd/hostapd-0.6.9-config.patch.bz2 diff --git a/network_daemons/hostapd/hostapd-0.6.9-install.patch.bz2 b/network_daemons/hostapd/hostapd-0.6.9-install.patch.bz2 Binary files differnew file mode 100644 index 0000000..786055c --- /dev/null +++ b/network_daemons/hostapd/hostapd-0.6.9-install.patch.bz2 diff --git a/network_daemons/hostapd/hostapd-0.6.9-nodumpstate.patch.bz2 b/network_daemons/hostapd/hostapd-0.6.9-nodumpstate.patch.bz2 Binary files differnew file mode 100644 index 0000000..014f2ee --- /dev/null +++ b/network_daemons/hostapd/hostapd-0.6.9-nodumpstate.patch.bz2 diff --git a/network_daemons/hostapd/hostapd-0.6.9-optflags.patch.bz2 b/network_daemons/hostapd/hostapd-0.6.9-optflags.patch.bz2 Binary files differnew file mode 100644 index 0000000..6931db6 --- /dev/null +++ b/network_daemons/hostapd/hostapd-0.6.9-optflags.patch.bz2 diff --git a/network_daemons/hostapd/hostapd-0.6.9-rt73usbhack.patch.bz2 b/network_daemons/hostapd/hostapd-0.6.9-rt73usbhack.patch.bz2 Binary files differnew file mode 100644 index 0000000..7a0e68e --- /dev/null +++ b/network_daemons/hostapd/hostapd-0.6.9-rt73usbhack.patch.bz2 diff --git a/network_daemons/hostapd/hostapd-0.6.9-slackware.patch.bz2 b/network_daemons/hostapd/hostapd-0.6.9-slackware.patch.bz2 Binary files differnew file mode 100644 index 0000000..7991d95 --- /dev/null +++ b/network_daemons/hostapd/hostapd-0.6.9-slackware.patch.bz2 diff --git a/network_daemons/hostapd/hostapd.SlackBuild b/network_daemons/hostapd/hostapd.SlackBuild new file mode 100755 index 0000000..d766a03 --- /dev/null +++ b/network_daemons/hostapd/hostapd.SlackBuild @@ -0,0 +1,100 @@ +#!/bin/sh + +CWD=`pwd` +NAME=hostapd +VERSION=0.6.9 +ARCH=i586 +BUILD=1rt73usb +#BUILD=1 +PKGNAME=$NAME +PKGVER=$VERSION +BASEDIR=$PKGNAME-$PKGVER +ARCHIVE=$BASEDIR.tar.gz +REPOSITORY=http://hostap.epitest.fi/releases +FLAGS="-O2 -march=pentium -mtune=pentium -fno-strength-reduce \ + -fomit-frame-pointer -ffast-math" +PKG=/tmp/package-$NAME + +rm -rf $PKG +mkdir -p $PKG + +# Obtain sources +if [ ! -e $ARCHIVE ]; then + if `wget "$REPOSITORY/$ARCHIVE"`; then + true + else + exit 1 + fi +fi + +# Compile +cd /tmp +tar zxvf $CWD/$ARCHIVE +cd $BASEDIR +bzcat $CWD/$NAME-$VERSION-install.patch.bz2 | patch -p1 -s +#bzcat $CWD/$NAME-$VERSION-nodumpstate.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-rt73usbhack.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-config.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-slackware.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-optflags.patch.bz2 | patch -p1 -s +( +cd hostapd +make OPTS="${FLAGS}" +) + +# Install +( +cd hostapd +make install \ + DESTDIR=$PKG \ + SYSCONFDIR=/etc/conf.d \ + MANDIR=/usr/man \ + DOCDIR=/usr/doc/${NAME}-${VERSION} +) +mkdir -p $PKG/install $PKG/etc/rc.d +cat > $PKG/install/slack-desc <<EOF +# 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------------------------------------------------------| +hostapd: hostapd (Access point daemon) +hostapd: +hostapd: Hostapd is a user space daemon for access point and authentication +hostapd: servers. It implements IEEE 802.11 access point management, IEEE +hostapd: 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and +hostapd: RADIUS authentication server. hostapd is designed to be a "daemon" +hostapd: program that runs in the background and acts as the backend component +hostapd: controlling authentication. +hostapd: +hostapd: Homepage: http://hostap.epitest.fi/hostapd +hostapd: +EOF + +cat > $PKG/install/slack-required <<EOF +libnl >= 1.1-i486-1 +openssl-solibs >= 0.9.8i-i486-1 +EOF + +install -m 0755 doinst.sh ${PKG}/install + +install -m 0644 rc.hostapd ${PKG}/etc/rc.d/rc.hostapd.new + +mv ${PKG}/etc/conf.d/hostapd.conf ${PKG}/etc/conf.d/hostapd.conf.new + +chmod 444 $PKG/usr/man/man?/*.? +gzip -9nf $PKG/usr/man/man?/*.? + +strip \ + ${PKG}/usr/bin/* \ + ${PKG}/usr/sbin/* || : + +chown -R root.root $PKG + +# Make package +cd $PKG +cat install/slack-desc | grep "$NAME:" > /tmp/$NAME-$VERSION-$ARCH-$BUILD.txt +makepkg -l y -c n /tmp/$NAME-$VERSION-$ARCH-$BUILD.tgz diff --git a/network_daemons/miniupnpd/miniupnpd-1.3-config.patch.bz2 b/network_daemons/miniupnpd/miniupnpd-1.3-config.patch.bz2 Binary files differnew file mode 100644 index 0000000..b0017e2 --- /dev/null +++ b/network_daemons/miniupnpd/miniupnpd-1.3-config.patch.bz2 diff --git a/network_daemons/miniupnpd/miniupnpd-1.3-etc.patch.bz2 b/network_daemons/miniupnpd/miniupnpd-1.3-etc.patch.bz2 Binary files differnew file mode 100644 index 0000000..9b02862 --- /dev/null +++ b/network_daemons/miniupnpd/miniupnpd-1.3-etc.patch.bz2 diff --git a/network_daemons/miniupnpd/miniupnpd-1.3-fixes.patch.bz2 b/network_daemons/miniupnpd/miniupnpd-1.3-fixes.patch.bz2 Binary files differnew file mode 100644 index 0000000..a7a6a62 --- /dev/null +++ b/network_daemons/miniupnpd/miniupnpd-1.3-fixes.patch.bz2 diff --git a/network_daemons/miniupnpd/miniupnpd-1.3-iptablespath.patch.bz2 b/network_daemons/miniupnpd/miniupnpd-1.3-iptablespath.patch.bz2 Binary files differnew file mode 100644 index 0000000..537ec2c --- /dev/null +++ b/network_daemons/miniupnpd/miniupnpd-1.3-iptablespath.patch.bz2 diff --git a/network_daemons/miniupnpd/miniupnpd-1.3-makefile.patch.bz2 b/network_daemons/miniupnpd/miniupnpd-1.3-makefile.patch.bz2 Binary files differnew file mode 100644 index 0000000..4285d56 --- /dev/null +++ b/network_daemons/miniupnpd/miniupnpd-1.3-makefile.patch.bz2 diff --git a/network_daemons/miniupnpd/miniupnpd-1.3-manpage.patch.bz2 b/network_daemons/miniupnpd/miniupnpd-1.3-manpage.patch.bz2 Binary files differnew file mode 100644 index 0000000..8fc5454 --- /dev/null +++ b/network_daemons/miniupnpd/miniupnpd-1.3-manpage.patch.bz2 diff --git a/network_daemons/miniupnpd/miniupnpd-1.3-optflags.patch.bz2 b/network_daemons/miniupnpd/miniupnpd-1.3-optflags.patch.bz2 Binary files differnew file mode 100644 index 0000000..8b82d14 --- /dev/null +++ b/network_daemons/miniupnpd/miniupnpd-1.3-optflags.patch.bz2 diff --git a/network_daemons/miniupnpd/miniupnpd-1.3-slackware.patch.bz2 b/network_daemons/miniupnpd/miniupnpd-1.3-slackware.patch.bz2 Binary files differnew file mode 100644 index 0000000..eae4a8c --- /dev/null +++ b/network_daemons/miniupnpd/miniupnpd-1.3-slackware.patch.bz2 diff --git a/network_daemons/miniupnpd/miniupnpd.SlackBuild b/network_daemons/miniupnpd/miniupnpd.SlackBuild new file mode 100755 index 0000000..5bca27e --- /dev/null +++ b/network_daemons/miniupnpd/miniupnpd.SlackBuild @@ -0,0 +1,88 @@ +#!/bin/sh + +CWD=`pwd` +NAME=miniupnpd +VERSION=1.3 +ARCH=i586 +BUILD=1 +PKGNAME=$NAME +PKGVER=$VERSION +BASEDIR=$PKGNAME-$PKGVER +ARCHIVE=$BASEDIR.tar.gz +REPOSITORY=http://miniupnp.free.fr/files +FLAGS="-O2 -march=pentium -mtune=pentium -fno-strength-reduce \ + -fomit-frame-pointer -ffast-math" +PKG=/tmp/package-$NAME + +rm -rf $PKG +mkdir -p $PKG + +# Obtain sources +if [ ! -e $ARCHIVE ]; then + if `wget "$REPOSITORY/$ARCHIVE"`; then + true + else + exit 1 + fi +fi + +# Compile +cd /tmp +tar zxvf $CWD/$ARCHIVE +cd $BASEDIR +bzcat $CWD/$NAME-$VERSION-fixes.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-optflags.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-makefile.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-config.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-etc.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-manpage.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-iptablespath.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-slackware.patch.bz2 | patch -p1 -s +make -f Makefile.linux OPTFLAGS="${FLAGS} -DIPTABLES_143 -I/usr/src/linux/include" + +# Install +make -f Makefile.linux install PREFIX=$PKG +mkdir -p $PKG/install $PKG/usr/doc/$NAME-$VERSION +cat > $PKG/install/slack-desc <<EOF +# 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------------------------------------------------------| +miniupnpd: miniupnpd (UPnP daemon) +miniupnpd: +miniupnpd: The miniUPnP daemon is an UPnP IGD (Internet gateway device) which +miniupnpd: provides NAT traversal services to any UPnP enabled client on the +miniupnpd: network. See http://www.upnp.org for more details on UPnP. Later +miniupnpd: support for the NAT Port Mapping Protocol (NAT-PMP) was added. +miniupnpd: +miniupnpd: Miniupnpd was written by Thomas Bernard. +miniupnpd: +miniupnpd: Homepage: http://miniupnp.free.fr +miniupnpd: +EOF + +install -m0644 -g0 -o0 slackware/doinst.sh $PKG/install + +install -m0644 -g0 -o0 Changelog.txt README \ + $PKG/usr/doc/$NAME-$VERSION + +gzip -9nf \ + $PKG/usr/doc/$NAME-$VERSION/Changelog.txt + +chmod 640 $PKG/etc/conf.d/miniupnpd.conf.new + +chmod 444 $PKG/usr/man/man?/*.? +gzip -9nf $PKG/usr/man/man?/*.? + +strip $PKG/usr/sbin/* || : + +chown -R root.root $PKG + +# Make package +cd $PKG +cat install/slack-desc | grep "$NAME:" > /tmp/$NAME-$VERSION-$ARCH-$BUILD.txt +makepkg -l y -c n /tmp/$NAME-$VERSION-$ARCH-$BUILD.tgz diff --git a/network_daemons/ngircd/ngircd-15rc1-heimdal.patch.xz b/network_daemons/ngircd/ngircd-15rc1-heimdal.patch.xz Binary files differnew file mode 100644 index 0000000..15991c0 --- /dev/null +++ b/network_daemons/ngircd/ngircd-15rc1-heimdal.patch.xz diff --git a/network_daemons/ngircd/ngircd.SlackBuild b/network_daemons/ngircd/ngircd.SlackBuild new file mode 100755 index 0000000..f08738f --- /dev/null +++ b/network_daemons/ngircd/ngircd.SlackBuild @@ -0,0 +1,95 @@ +#!/bin/sh + +CWD=`pwd` +NAME=ngircd +VERSION=15rc1 +ARCH=i586 +BUILD=1 +PKGNAME=$NAME +PKGVER=15~rc1 +BASEDIR=$PKGNAME-$PKGVER +ARCHIVE=$BASEDIR.tar.gz +REPOSITORY=ftp://ftp.berlios.de/pub/ngircd +FLAGS="-O2 -march=pentium -mtune=pentium -fno-strength-reduce \ + -fomit-frame-pointer -ffast-math" +PKG=/tmp/package-$NAME + +rm -rf $PKG +mkdir -p $PKG + +# Obtain sources +if [ ! -e $ARCHIVE ]; then + if `wget "$REPOSITORY/$ARCHIVE"`; then + true + else + exit 1 + fi +fi + +# Compile +cd /tmp +tar zxvf $CWD/$ARCHIVE +cd $BASEDIR +lzcat $CWD/$NAME-$VERSION-heimdal.patch.xz | patch -p1 -s +CFLAGS=$FLAGS CXXFLAGS=$FLAGS ./configure \ + --build=${ARCH}-slackware-linux \ + --prefix=/usr \ + --sysconfdir=/etc/conf.d \ + --mandir=/usr/man \ + --localstatedir=/var \ + --with-openssl \ + --enable-ipv6 +make + +# Install +make install DESTDIR=$PKG +mkdir -p $PKG/install $PKG/usr/doc/$NAME-$VERSION $PKG/etc/rc.d +cat > $PKG/install/slack-desc <<EOF +# 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------------------------------------------------------| +ngircd: ngIRCd (Internet Relay Chat daemon) +ngircd: +ngircd: NgIRCd is an Internet Relay Chat (IRC) server. The name stands for +ngircd: "next generation IRC daemon". It was written from scratch as opposed +ngircd: to being based on the "grandfather" of IRC daemons ircd (IRCNet's +ngircd: daemon). Another benefit is that ngIRCd's configuration file is +ngircd: quite easy to understand. NgIRCd is a good choice for a small +ngircd: network or a standalone server. +ngircd: +ngircd: Homepage: http://ngircd.barton.de +ngircd: +EOF + +install -m 0644 -g 0 -o 0 doinst.sh $PKG/install + +install -m 0644 -g 0 -o 0 AUTHORS NEWS \ + $PKG/usr/doc/$NAME-$VERSION + +xz -9f \ + $PKG/usr/doc/$NAME-$VERSION/NEWS + +rm -rf $PKG/usr/share + +mv $PKG/etc/conf.d/ngircd.conf $PKG/etc/conf.d/ngircd.conf-sample +chmod 0640 $PKG/etc/conf.d/ngircd.conf-sample + +install -m 0755 -g 0 -o 0 rc.ngircd.new $PKG/etc/rc.d +install -m 0644 -g 0 -o 0 ngircd.motd.new $PKG/etc/conf.d + +chmod 0444 $PKG/usr/man/man?/*.? +xz -9f $PKG/usr/man/man?/*.? + +strip $PKG/usr/sbin/* || : + +chown -R root.root $PKG + +# Make package +cd $PKG +cat install/slack-desc | grep "$NAME:" > /tmp/$NAME-$VERSION-$ARCH-$BUILD.txt +makepkg -l y -c n /tmp/$NAME-$VERSION-$ARCH-$BUILD.txz diff --git a/network_daemons/samba/samba-3.0.26a-heimdal.patch.bz2 b/network_daemons/samba/samba-3.0.26a-heimdal.patch.bz2 Binary files differnew file mode 100644 index 0000000..6ee4e84 --- /dev/null +++ b/network_daemons/samba/samba-3.0.26a-heimdal.patch.bz2 diff --git a/network_daemons/samba/samba.build b/network_daemons/samba/samba.build new file mode 100755 index 0000000..5ac1677 --- /dev/null +++ b/network_daemons/samba/samba.build @@ -0,0 +1,204 @@ +#!/bin/bash + +source /usr/src/ports/Build/build.sh + +PACKAGER="Witukind <witukind@nsbm.kicks-ass.org>" +ARCH=i586 +BUILD=1 + +# Sources +SRCNAME[0]=samba +SRCVER[0]=3.0.26a +SRCREP[0]=http://www.samba.org/samba/ftp +SRCPKG[0]=${SRCNAME[0]}-${SRCVER[0]}.tar.gz +SRCROOT[0]=${SRCNAME[0]}-${SRCVER[0]} + +# Packages +PKGNAME[0]=${SRCNAME[0]}_server +PKGVER[0]=${SRCVER[0]} +PKGARCH[0]=${ARCH} +PKGOPTS[0]="nodocdir" + +PKGNAME[1]=${SRCNAME[0]}_client +PKGVER[1]=${SRCVER[0]} +PKGARCH[1]=${ARCH} +PKGOPTS[1]="nodocdir" + +PKGNAME[2]=${SRCNAME[0]}_lib +PKGVER[2]=${SRCVER[0]} +PKGARCH[2]=${ARCH} +PKGOPTS[2]="nodocdir" + +PKGNAME[3]=${SRCNAME[0]}_dev +PKGVER[3]=${SRCVER[0]} +PKGARCH[3]=${ARCH} +PKGOPTS[3]="nodocdir" + +PKGNAME[4]=swat +PKGVER[4]=${SRCVER[0]} +PKGARCH[4]=${ARCH} +PKGOPTS[4]="nodocdir" + +begin + +( + cd ${SRC[0]}/source + CFLAGS=${DISTFLAGS} CXXFLAGS=${DISTFLAGS} \ + ./configure \ + --enable-static=no \ + --enable-shared=yes \ + --prefix=/usr \ + --mandir=/usr/man \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libdir=/usr/lib \ + --libexecdir=/usr/libexec \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --with-lockdir=/var/cache/samba \ + --with-configdir=/etc/samba \ + --with-privatedir=/etc/samba/private \ + --with-swatdir=/srv/www/swat \ + --enable-cups \ + --with-fhs \ + --with-acl-support=yes \ + --with-automount \ + --with-smbmount \ + --with-quotas \ + --with-syslog \ + --with-utmp \ + --with-libsmbclient \ + --with-winbind \ + --with-ldap \ + $ARCH-pc-linux-gnu + make + make install DESTDIR=${PKG[0]} + + cd .. + + mv \ + ${PKG[0]}/usr/share/man \ + ${PKG[0]}/usr + + mkdir -p \ + ${PKG[4]}/usr/{sbin,man/man8} \ + ${PKG[3]}/usr/include \ + ${PKG[2]}/{lib,usr/lib,usr/man/man7} \ + ${PKG[1]}/usr/{bin,sbin,man/{man1,man5,man8}} \ + ${PKG[0]}/etc/{rc.d,samba/private} \ + ${PKG[0]}/{lib,var/{spool/samba,cache/samba,log/samba}} + + # samba_server + install -m0640 ${SRC[0]}/heimdal/smb.conf.default \ + ${PKG[0]}/etc/samba + install -m0644 ${SRC[0]}/heimdal/rc.samba \ + ${PKG[0]}/etc/rc.d + + rm -f \ + ${PKG[0]}/usr/man/man7/pam_winbind.7 + + rmdir \ + ${PKG[0]}/usr/share \ + ${PKG[0]}/lib \ + ${PKG[0]}/var/run \ + + # samba_client + mv \ + ${PKG[0]}/usr/sbin/umount.cifs \ + ${PKG[0]}/usr/sbin/mount.cifs \ + ${PKG[1]}/usr/sbin + + mv \ + ${PKG[0]}/usr/man/man8/umount.cifs.8 \ + ${PKG[0]}/usr/man/man8/mount.cifs.8 \ + ${PKG[1]}/usr/man/man8 + + mv \ + ${PKG[0]}/usr/bin/smbmount \ + ${PKG[0]}/usr/bin/smbumount \ + ${PKG[0]}/usr/bin/smbmnt \ + ${PKG[0]}/usr/bin/rpcclient \ + ${PKG[1]}/usr/sbin + + mv \ + ${PKG[0]}/usr/man/man8/smbmount.8 \ + ${PKG[0]}/usr/man/man8/smbumount.8 \ + ${PKG[0]}/usr/man/man8/smbmnt.8 \ + ${PKG[0]}/usr/man/man8/rpcclient.8 \ + ${PKG[1]}/usr/man/man8 + + mv \ + ${PKG[0]}/usr/bin/smbtree \ + ${PKG[0]}/usr/bin/smbtar \ + ${PKG[0]}/usr/bin/smbget \ + ${PKG[0]}/usr/bin/smbspool \ + ${PKG[0]}/usr/bin/smbcacls \ + ${PKG[0]}/usr/bin/smbcquotas \ + ${PKG[0]}/usr/bin/smbclient \ + ${PKG[0]}/usr/bin/findsmb \ + ${PKG[1]}/usr/bin + + mv \ + ${PKG[0]}/usr/man/man1/smbtree.1 \ + ${PKG[0]}/usr/man/man1/smbtar.1 \ + ${PKG[0]}/usr/man/man1/smbget.1 \ + ${PKG[0]}/usr/man/man1/smbcacls.1 \ + ${PKG[0]}/usr/man/man1/smbcquotas.1 \ + ${PKG[0]}/usr/man/man1/smbclient.1 \ + ${PKG[0]}/usr/man/man1/findsmb.1 \ + ${PKG[1]}/usr/man/man1 + + mv \ + ${PKG[0]}/usr/man/man8/smbspool.8 \ + ${PKG[1]}/usr/man/man1/smbspool.1 + + mv \ + ${PKG[0]}/usr/man/man5/smbgetrc.5 \ + ${PKG[1]}/usr/man/man5 + + # samba_lib + + mv \ + ${PKG[0]}/usr/libexec/samba/libsmbclient.so \ + ${PKG[2]}/usr/lib/libsmbclient.so.0.0 + + ( + cd ${PKG[2]}/usr/lib/samba + rm -f libsmbclient.a + ln -sf /usr/lib/libsmbclient.so.0.0 libsmbclient.so + cd ${PKG[2]}/usr/lib + rm -f libsmbclient.so.0 libsmbclient.so libsmbclient.a + ln -sf libsmbclient.so.0.0 libsmbclient.so.0 + ln -sf libsmbclient.so.0.0 libsmbclient.so + ) + + cp -a \ + ${SRC[0]}/source/nsswitch/libnss_winbind.so \ + ${PKG[2]}/lib/libnss_winbind.so.2 + cp -a \ + ${SRC[0]}/source/nsswitch/libnss_wins.so \ + ${PKG[2]}/lib/libnss_wins.so.2 + + ( + cd ${PKG[2]}/lib + ln -sf libnss_winbind.so.2 libnss_winbind.so + ln -sf libnss_wins.so.2 libnss_wins.so + ) + + mv \ + ${PKG[0]}/usr/man/man7/libsmbclient.7 \ + ${PKG[0]}/usr/man/man7/samba.7 \ + ${PKG[2]}/usr/man/man7 + + # samba_dev + install -m0644 ${PKG[0]}/usr/include/*.h ${PKG[3]}/usr/include + + # swat + mv ${PKG[0]}/srv ${PKG[4]} + mv ${PKG[0]}/usr/sbin/swat ${PKG[4]}/usr/sbin + mv ${PKG[0]}/usr/man/man8/swat.8 ${PKG[4]}/usr/man/man8 + + rm -rf ${PKG[0]}/usr/include +) + +end diff --git a/network_daemons/uhub/uhub-0.2.8-config.patch.bz2 b/network_daemons/uhub/uhub-0.2.8-config.patch.bz2 Binary files differnew file mode 100644 index 0000000..9e85e86 --- /dev/null +++ b/network_daemons/uhub/uhub-0.2.8-config.patch.bz2 diff --git a/network_daemons/uhub/uhub-0.2.8-optflags.patch.bz2 b/network_daemons/uhub/uhub-0.2.8-optflags.patch.bz2 Binary files differnew file mode 100644 index 0000000..d25a224 --- /dev/null +++ b/network_daemons/uhub/uhub-0.2.8-optflags.patch.bz2 diff --git a/network_daemons/uhub/uhub-0.2.8-slackware.patch.xz b/network_daemons/uhub/uhub-0.2.8-slackware.patch.xz Binary files differnew file mode 100644 index 0000000..203e4d7 --- /dev/null +++ b/network_daemons/uhub/uhub-0.2.8-slackware.patch.xz diff --git a/network_daemons/uhub/uhub.SlackBuild b/network_daemons/uhub/uhub.SlackBuild new file mode 100755 index 0000000..a25617b --- /dev/null +++ b/network_daemons/uhub/uhub.SlackBuild @@ -0,0 +1,97 @@ +#!/bin/sh + +CWD=`pwd` +NAME=uhub +VERSION=0.2.8 +ARCH=i586 +BUILD=1 +PKGNAME=$NAME +PKGVER=$VERSION +BASEDIR=$PKGNAME-$PKGVER +ARCHIVE=$BASEDIR-src.tar.bz2 +REPOSITORY=http://www.extatic.org/downloads/uhub +FLAGS="-O2 -march=pentium -mtune=pentium -fno-strength-reduce \ + -fomit-frame-pointer -ffast-math" +PKG=/tmp/package-$NAME + +rm -rf $PKG +mkdir -p $PKG + +# Obtain sources +if [ ! -e $ARCHIVE ]; then + if `wget "$REPOSITORY/$ARCHIVE"`; then + true + else + exit 1 + fi +fi + +# Compile +cd /tmp +tar jxvf $CWD/$ARCHIVE +cd $BASEDIR +bzcat $CWD/$NAME-$VERSION-slackware.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-config.patch.bz2 | patch -p1 -s +bzcat $CWD/$NAME-$VERSION-optflags.patch.bz2 | patch -p1 -s + +function build +{ +make \ + SILENT=NO \ + USE_SSL=YES \ + STACK_PROTECT=YES \ + RELEASE=YES \ + OPTS="${FLAGS}" \ + ${*} +} + +# Install +build install DESTDIR=$PKG +mkdir -p $PKG/install $PKG/usr/doc/$NAME-$VERSION $PKG/etc/rc.d +cat > $PKG/install/slack-desc <<EOF +# 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------------------------------------------------------| +uhub: uhub (ADC hub server daemon) +uhub: +uhub: uHub is a high performance peer-to-peer hub for the ADC network. Its +uhub: low memory footprint allows it to handle several thousand users on +uhub: high-end servers, or a small private hub on embedded hardware. +uhub: +uhub: uHub uses the ADC protocol, and is compatible with DC++, jUCy and +uhub: other ADC clients. +uhub: +uhub: Homepage: http://www.extatic.org/uhub +uhub: +EOF + +cat > $PKG/install/slack-required <<EOF +libevent >= 1.4.9-i486-1 +openssl-solibs >= 0.9.8i-i486-1 +EOF + +install -m 0644 -g 0 -o 0 doinst.sh $PKG/install + +install -m 0644 -g 0 -o 0 AUTHORS BUGS ChangeLog README \ + $PKG/usr/doc/$NAME-$VERSION + +gzip -9nf \ + $PKG/usr/doc/$NAME-$VERSION/ChangeLog + +install -m 0755 -g 0 -o 0 rc.uhub.new $PKG/etc/rc.d + +rm -f ${PKG}/etc/conf.d/uhub_motd.conf + +strip $PKG/usr/sbin/* || : + +chown -R root.root $PKG + +# Make package +cd $PKG +cat install/slack-desc | grep "$NAME:" > /tmp/$NAME-$VERSION-$ARCH-$BUILD.txt +makepkg -l y -c n /tmp/$NAME-$VERSION-$ARCH-$BUILD.tgz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-aslim.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-aslim.patch.xz Binary files differnew file mode 100644 index 0000000..6302003 --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-aslim.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-builddefs.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-builddefs.patch.xz Binary files differnew file mode 100644 index 0000000..5479566 --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-builddefs.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-clone.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-clone.patch.xz Binary files differnew file mode 100644 index 0000000..0314c7a --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-clone.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-closestdfds.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-closestdfds.patch.xz Binary files differnew file mode 100644 index 0000000..21be790 --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-closestdfds.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-config.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-config.patch.xz Binary files differnew file mode 100644 index 0000000..7f80dc7 --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-config.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-configfilepath.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-configfilepath.patch.xz Binary files differnew file mode 100644 index 0000000..7511d00 --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-configfilepath.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-daemonizeplus.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-daemonizeplus.patch.xz Binary files differnew file mode 100644 index 0000000..40a60e2 --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-daemonizeplus.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-filter.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-filter.patch.xz Binary files differnew file mode 100644 index 0000000..b6dc377 --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-filter.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-logrotate.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-logrotate.patch.xz Binary files differnew file mode 100644 index 0000000..c7f5aad --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-logrotate.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-openssl.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-openssl.patch.xz Binary files differnew file mode 100644 index 0000000..e1175cc --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-openssl.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-pam.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-pam.patch.xz Binary files differnew file mode 100644 index 0000000..514272c --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-pam.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-pamhostname.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-pamhostname.patch.xz Binary files differnew file mode 100644 index 0000000..58842e9 --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-pamhostname.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-slackware.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-slackware.patch.xz Binary files differnew file mode 100644 index 0000000..14b98e4 --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-slackware.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-sqb.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-sqb.patch.xz Binary files differnew file mode 100644 index 0000000..e51914c --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-sqb.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-systemd.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-systemd.patch.xz Binary files differnew file mode 100644 index 0000000..263c287 --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-systemd.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-systemdman.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-systemdman.patch.xz Binary files differnew file mode 100644 index 0000000..616006d --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-systemdman.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-trim.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-trim.patch.xz Binary files differnew file mode 100644 index 0000000..8db3e67 --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-trim.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-userlistlog.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-userlistlog.patch.xz Binary files differnew file mode 100644 index 0000000..6be6bb8 --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-userlistlog.patch.xz diff --git a/network_daemons/vsftpd/vsftpd-2.3.5-wildchar.patch.xz b/network_daemons/vsftpd/vsftpd-2.3.5-wildchar.patch.xz Binary files differnew file mode 100644 index 0000000..a690a70 --- /dev/null +++ b/network_daemons/vsftpd/vsftpd-2.3.5-wildchar.patch.xz diff --git a/network_daemons/vsftpd/vsftpd.build b/network_daemons/vsftpd/vsftpd.build new file mode 100755 index 0000000..e12dfb8 --- /dev/null +++ b/network_daemons/vsftpd/vsftpd.build @@ -0,0 +1,65 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd> + +source /usr/src/ports/Build/build.sh + +NAME=vsftpd +VERSION=2.3.5 +BUILD=1 + +# Description + +cat > ${PKG}/install/slack-desc <<EOF +# 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 ':'. + +$(padd)|-----handy-ruler------------------------------------------------------| +${NAME}: vsftpd (Very Secure FTP Daemon) +${NAME}: +${NAME}: vsftpd is an FTP server, or daemon. The 'vs' stands for Very Secure. +${NAME}: Obviously this is not a guarantee, but a reflection that the entire +${NAME}: codebase was written with security in mind, and carefully designed to +${NAME}: be resilient to attack (as well as extremely fast and scalable). +${NAME}: +${NAME}: The vsftpd homepage is http://vsftpd.beasts.org +${NAME}: +${NAME}: The Very Secure FTP Daemon was written by Chris Evans. +${NAME}: +EOF + +# Sources + +SRCNAME[0]=${NAME} +SRCVERS[0]=${VERSION} +SRCPACK[0]=https://security.appspot.com/downloads/${SRCNAME[0]}-${SRCVERS[0]}.tar.gz +SRCCOPY[0]="GPL2" + +build0() +{ +make ${JOBS} +doc FAQ REWARD TUNING EXAMPLE +changelog ChangeLog +install.dir ${PKG}/usr/sbin +install.bin vsftpd ${PKG}/usr/sbin +install.dir ${PKG}${SYS_DIR[man]}/man{5,8} +install.man vsftpd.8 ${PKG}${SYS_DIR[man]}/man8 +install.man vsftpd.conf.5 ${PKG}${SYS_DIR[man]}/man5 +install.dir ${PKG}/etc/vsftpd +install.cfg vsftpd.conf ${PKG}/etc/vsftpd/vsftpd.conf.new +install.dat doinst.sh ${PKG}/install +install.cfg ftpusers.new ${PKG}/etc/vsftpd +install.cfg user_list.new ${PKG}/etc/vsftpd +install.dir ${PKG}${SYS_DIR[systemdsystemunitdir]} +install.dat vsftpd.service ${PKG}${SYS_DIR[systemdsystemunitdir]} +install.dir ${PKG}/etc/logrotate.d +install.dat vsftpd.logrotate ${PKG}/etc/logrotate.d/vsftpd.new +install.dir ${PKG}/srv/ftp/pub +#FIXME: PAM: modify the builddefs patch to enable PAM support +#install.dir ${PKG}/etc/pam.d +#install.dat vsftpd.pam ${PKG}/etc/pam.d/vsftpd +} |