1*4882a593SmuzhiyunSUMMARY = "Mail processing program" 2*4882a593SmuzhiyunDESCRIPTION = "Procmail can be used to create mail-servers, mailing lists, sort your\ 3*4882a593Smuzhiyunincoming mail into separate folders/files (real convenient when subscribing\ 4*4882a593Smuzhiyunto one or more mailing lists or for prioritising your mail), preprocess\ 5*4882a593Smuzhiyunyour mail, start any programs upon mail arrival (e.g. to generate different\ 6*4882a593Smuzhiyunchimes on your workstation for different types of mail) or selectively\ 7*4882a593Smuzhiyunforward certain incoming mail automatically to someone." 8*4882a593SmuzhiyunHOMEPAGE = "http://www.procmail.org/" 9*4882a593SmuzhiyunSECTION = "Applications/System" 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunSRC_URI = "http://www.ring.gr.jp/archives/net/mail/${BPN}/${BP}.tar.gz \ 12*4882a593Smuzhiyun file://from-debian-to-fix-compile-errors.patch \ 13*4882a593Smuzhiyun file://from-debian-to-modify-parameters.patch \ 14*4882a593Smuzhiyun file://from-debian-to-fix-man-file.patch \ 15*4882a593Smuzhiyun file://man-file-mailstat.1-from-debian.patch" 16*4882a593SmuzhiyunSRC_URI[md5sum] = "1678ea99b973eb77eda4ecf6acae53f1" 17*4882a593SmuzhiyunSRC_URI[sha256sum] = "087c75b34dd33d8b9df5afe9e42801c9395f4bf373a784d9bc97153b0062e117" 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunLICENSE = "GPL-2.0-only & Artistic-1.0" 20*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=a71e50e197a992c862379e576e669757 \ 21*4882a593Smuzhiyun file://Artistic;md5=505e00d03c3428cde21b17b2a386590e" 22*4882a593Smuzhiyun 23*4882a593SmuzhiyunDEPENDS = "libnet" 24*4882a593Smuzhiyuninherit autotools-brokensep 25*4882a593Smuzhiyundo_configure() { 26*4882a593Smuzhiyun find examples -type f | xargs chmod 644 27*4882a593Smuzhiyun export CC="${BUILD_CC}" 28*4882a593Smuzhiyun export LD="${BUILD_LD}" 29*4882a593Smuzhiyun export CFLAGS="${BUILD_CFLAGS}" 30*4882a593Smuzhiyun export AR="${BUILD_AR}" 31*4882a593Smuzhiyun export AS="${BUILD_AS}" 32*4882a593Smuzhiyun make TARGET_CFLAGS="$TARGET_CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS0="${BUILD_LDFLAGS}" autoconf.h 33*4882a593Smuzhiyun} 34*4882a593Smuzhiyun 35*4882a593Smuzhiyundo_compile() { 36*4882a593Smuzhiyun oe_runmake -i TARGET_CFLAGS="$TARGET_CFLAGS -Wno-comments -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS0="${LDFLAGS}" 37*4882a593Smuzhiyun} 38*4882a593Smuzhiyun 39*4882a593Smuzhiyundo_install() { 40*4882a593Smuzhiyun install -d ${D}${bindir} 41*4882a593Smuzhiyun install -d ${D}${mandir}/man1 42*4882a593Smuzhiyun install -d ${D}${mandir}/man5 43*4882a593Smuzhiyun oe_runmake -i BASENAME=${D}/usr MANDIR=${D}${mandir} install 44*4882a593Smuzhiyun install -m 0644 debian/mailstat.1 ${D}${mandir}/man1 45*4882a593Smuzhiyun} 46