diff options
Diffstat (limited to 'network/opensmtpd/opensmtpd.SlackBuild')
-rw-r--r-- | network/opensmtpd/opensmtpd.SlackBuild | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/network/opensmtpd/opensmtpd.SlackBuild b/network/opensmtpd/opensmtpd.SlackBuild index 9ddff435fb..d8d9ab0c45 100644 --- a/network/opensmtpd/opensmtpd.SlackBuild +++ b/network/opensmtpd/opensmtpd.SlackBuild @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=opensmtpd -VERSION=${VERSION:-5.7.3p2} +VERSION=${VERSION:-5.9.2p1} EXTRAS=${EXTRAS:-5.7.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -85,6 +85,7 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -92,8 +93,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -patch -p0 <$CWD/configure.diff - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -101,16 +100,17 @@ CXXFLAGS="$SLKCFLAGS" \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc/opensmtpd \ --localstatedir=/var \ - --with-sock-dir=/var/run \ + --with-path-socket=/var/run \ --mandir=/usr/man \ --with-mantype=doc \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --without-rpath \ - --with-maildir=/var/spool/mail \ - --with-privsep-user=smtpd \ - --with-queue-user=smtpq \ - --with-ca-file=/etc/ssl/certs/ca-certificates.crt \ - --enable-table-db \ + --with-path-mbox=/var/spool/mail \ + --with-user-smtpd=smtpd \ + --with-user-queue=smtpq \ + --with-group-queue=smtpq \ + --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \ + --with-table-db \ --build=$ARCH-slackware-linux make @@ -124,9 +124,10 @@ rm -f $PKG/usr/bin/sendmail $PKG/usr/sbin/sendmail ln -s smtpctl $PKG/usr/sbin/sendmail ln -s ../sbin/sendmail $PKG/usr/bin/sendmail -rm -f $PKG/usr/sbin/mailq $PKG/usr/sbin/newaliases -ln -s makemap $PKG/usr/sbin/newaliases +rm -f $PKG/usr/sbin/mailq $PKG/usr/sbin/newaliases $PKG/usr/sbin/makemap ln -s smtpctl $PKG/usr/sbin/mailq +ln -s smtpctl $PKG/usr/sbin/newaliases +ln -s smtpctl $PKG/usr/sbin/makemap mkdir -p $PKG/etc/rc.d cat $CWD/rc.opensmtpd > $PKG/etc/rc.d/rc.opensmtpd.new @@ -144,6 +145,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a INSTALL LICENSE README.md THANKS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install @@ -151,4 +153,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -p -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |