Magellan Linux

Contents of /branches/R11-unstable/core/ssmtp/ssmtp-2.64-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25071 - (show annotations) (download)
Tue Nov 25 02:57:11 2014 UTC (9 years, 5 months ago) by niro
File size: 2046 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="ssmtp"
4 PVER="2.64"
5 PBUILD="r3"
6
7 PCAT="net-mail"
8
9 DESCRIPTION="Extremely simple MTA to get mails off the system to a Mailhub."
10 HOMEPAGE="ftp://ftp.debian.org/debian/pool/main/s/ssmtp/"
11
12 DEPEND=">= virtual/glibc
13 >= net-mail/mail-base-files-0.1
14 >= dev-libs/openssl-1.0.0
15 >= net-mail/mailwrapper-0.2.1"
16
17 PROVIDE="virtual/mta"
18
19 SRCFILE="${PNAME}_${PVER}.orig.tar.bz2"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 sminclude mtools
23
24 MAILER_CONF_CVS_REV=1.2
25
26 SRC_URI=(
27 http://ftp.debian.org/debian/pool/main/${PNAME:0:1}/${PNAME}/${SRCFILE}
28 mirror://${PNAME}/${SRCFILE}
29 mirror://${PNAME}/ssmtp.conf-2.60.9
30 mirror://${PNAME}/mailer.conf-${MAILER_CONF_CVS_REV}
31 mirror://${PNAME}/${PNAME}-${PVER}-openssl.patch
32 )
33
34 UP2DATE="updatecmd http://ftp.debian.org/debian/pool/main/${PNAME:0:1}/${PNAME} | grep .tar.bz2 | sed -n 's/.*_\(.*\).t.*/\1/;s/.orig//;$ p'"
35
36 src_prepare()
37 {
38 munpack ${SRCFILE} || die
39 cd ${SRCDIR}
40
41 # fix linking issues with openssl, -lcrypto is missing
42 mpatch ${PNAME}-${PVER}-openssl.patch || die
43 mautoreconf || die
44 }
45
46 src_compile()
47 {
48 cd ${SRCDIR}
49
50 mconfigure \
51 --sysconfdir=/etc/ssmtp \
52 --enable-ssl \
53 --enable-inet6 \
54 --enable-md5auth \
55 || die
56
57 make clean || die
58 make etcdir=/etc || die
59 }
60
61 src_install()
62 {
63 cd ${SRCDIR}
64
65 # needed directories (lib is wanted do not use mlibdir()!!)
66 minstalldir /usr/lib || die
67 minstalldir /usr/sbin || die
68
69 # bins
70 minstallexec ssmtp /usr/sbin || die
71
72 # etc
73 minstalletc ssmtp.conf-2.60.9 ssmtp.conf /etc/ssmtp || die
74 minstalletc ${SRCDIR}/revaliases revaliases /etc/ssmtp || die
75
76 # make use net-mail/mailwrapper as default sendmail
77 mlink /usr/sbin/ssmtp /usr/sbin/sendmail.ssmtp || die
78 minstalletc mailer.conf-${MAILER_CONF_CVS_REV} mailer.conf /etc/mail || die
79
80 # mans & docs
81 minstallman ssmtp.8 || die
82 minstalldocs CHANGELOG_OLD COPYING INSTALL README TLS ssmtp.lsm || die
83 }
84
85 postinstall()
86 {
87 if [ ! -d ${MROOT}/var/spool/mail ]
88 then
89 install -d ${MROOT}/var/spool/mail
90 fi
91
92 chown root:mail ${MROOT}/var/spool/mail
93 chmod 0775 ${MROOT}/var/spool/mail
94 }