### this file is sourced not run
PKGVER=3.22
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 2015-12-17 modified by james
TARBALL=procmail-$PKGVER.tar.gz
MD5SUM=1678ea99b973eb77eda4ecf6acae53f1
SRC_URL=http://ftp.cc.uoc.gr/mirrors/procmail/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="procmail: procmail $PKGVER (Mail processor)
procmail: 
procmail: The Procmail package contains an autonomous mail processor. This is 
procmail: useful for filtering and sorting incoming mail.
procmail: 
procmail: http://ftp.cc.uoc.gr/mirrors/procmail/
procmail: 
procmail: 
procmail: 
procmail: 
procmail: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/procmail*
	
	# use sendmail by default - postfix also calls its mailer "sendmail"
	> /usr/sbin/sendmail &&
	sed -i 's/getline/get_line/' src/*.[ch] &&
	make LOCKINGTEST=/tmp MANDIR=/usr/share/man install &&
	make install-suid &&
	rm -f /usr/sbin/sendmail &&

	# docs
	install -d -m755 /usr/share/procmail/examples &&
	install -m644 examples/* /usr/share/procmail/examples &&
	install -m644 INSTALL FEATURES FAQ README KNOWN_BUGS /usr/share/procmail &&
	
	pkg_build_slackdesc
}


