#!/bin/bash # # clamav.SlackBuild is free software; you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or any later version. # # clamav.SlackBuild is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place - Suite 330, Boston, MA 02111-1307, USA # # default settings PACKAGE="libmilter" PACKAGE_EXT="gz" VERSION=${VERSION:=8.15.2} BUILD=${BUILD:=1} if [ -f ~/.slackbuildrc ]; then . ~/.slackbuildrc elif [ -f ../../runtime/slackbuildrc ]; then . ../../runtime/slackbuildrc fi check_required # First, build a static libmilter from sendmail SRC="sendmail.${VERSION}.tar.gz" URL="ftp://ftp.sendmail.org/pub/sendmail/$SRC" get_source $SRC $URL unpack_source $SRC sendmail-${VERSION} # http://foss.jose-marcio.org/wiki/doku.php/doc/installation/start#libmilter cat $CWD/site.config.m4 | sed "s,@LIBDIRSUFFIX@,$LIBDIRSUFFIX," > devtools/Site/site.config.m4 mkdir -p $PKG/usr/lib${LIBDIRSUFFIX} $PKG/usr/include/$PACKAGE make -C $PACKAGE O="$SLKCFLAGS" install DESTDIR=$PKG || exit 1 # Change a couple of root:bin ownerships (the .a and includes) to root:root: chown -R root:root $PKG mkdir -p $DOCS cp -a LICENSE libmilter/README libmilter/docs/* $DOCS fixup_package $PKG # Clean up the extra stuff: set +u if [ "$1" = "--cleanup" ]; then rm -rf $TMP/$PACKAGE-$VERSION rm -rf $PKG fi