69 lines
1.7 KiB
Text
69 lines
1.7 KiB
Text
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
|
app=postfix
|
|
version=3.8.1
|
|
build=1sml
|
|
homepage="https://www.postfix.org/"
|
|
download="https://cdn.postfix.johnriley.me/mirrors/postfix-release/official/postfix-$version.tar.gz"
|
|
desc="Fast, secure and easy-to-administer mail server"
|
|
requires="pcre openssl sqlite db icu"
|
|
|
|
prepbuilddir() {
|
|
mkandenterbuilddir
|
|
rm -rf $app-$version
|
|
|
|
tar xf $srcdir/$app-$version.tar.?z*
|
|
cd $app-$version
|
|
fixbuilddirpermissions
|
|
}
|
|
|
|
build() {
|
|
|
|
AUXLIBS="-lssl -lcrypto" \
|
|
CCARGS="-DNO_NIS -DNO_NISPLUS -DUSE_TLS" \
|
|
make -f Makefile.init makefiles
|
|
|
|
make
|
|
|
|
sh postfix-install -non-interactive \
|
|
install_root=$pkg \
|
|
daemon_directory=/usr/lib/postfix \
|
|
manpage_directory=/usr/share/man \
|
|
command_directory=/usr/bin
|
|
|
|
cp COPYRIGHT LICENSE $pkgdocs/
|
|
|
|
(
|
|
cd $pkg/etc/postfix
|
|
mv master.cf.proto master.cf.proto.new
|
|
mv aliases aliases.new
|
|
mv access access.new
|
|
mv main.cf main.cf.new
|
|
mv canonical canonical.new
|
|
mv transport transport.new
|
|
mv makedefs.out makedefs.out.new
|
|
mv postfix-files postfix-files.new
|
|
mv header_checks header_checks.new
|
|
mv master.cf master.cf.new
|
|
mv bounce.cf.default bounce.cf.default.new
|
|
mv virtual virtual.new
|
|
mv generic generic.new
|
|
|
|
cd ../../
|
|
|
|
# unnecessary stupidity hardcoded in the Makefile
|
|
mv usr/sbin/sendmail usr/bin/
|
|
cd usr/bin
|
|
ln -s sendmail mailq
|
|
ln -s sendmail newaliases
|
|
#rm -rv $pkg/usr
|
|
)
|
|
|
|
preprunitservice -s postfix -d
|
|
preprunitservice -s postfix.ssl -d
|
|
|
|
mkfinalpkg
|
|
}
|
|
|
|
sha512sums="
|
|
9eb91f2baab327de22dd55fc5ff398de74856e30be461282f41b1801301873881a8f40ce061c16e0505d51d96aaf0eff8d0ac660e5f6c70c6125133f64a4ee80 postfix-3.8.1.tar.gz
|
|
"
|