Magellan Linux

Contents of /trunk/core/ssmtp/ssmtp-2.64-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10252 - (show annotations) (download)
Fri Jan 20 12:36:35 2012 UTC (12 years, 5 months ago) by niro
File size: 1820 byte(s)
-import from magellan-next
1 # $Id$
2
3 PNAME="ssmtp"
4 PVER="2.64"
5 PBUILD="r2"
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 mbuild
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 )
32
33 UP2DATE="updatecmd http://ftp.debian.org/debian/pool/main/${PNAME:0:1}/${PNAME} | grep .tar.bz2 | sed -n 's/.*_\(.*\).t.*/\1/;s/.orig//;$ p'"
34
35 src_compile()
36 {
37 cd ${SRCDIR}
38
39 mconfigure \
40 --sysconfdir=/etc/ssmtp \
41 --enable-ssl \
42 --enable-inet6 \
43 --enable-md5auth \
44 || die
45
46 make clean || die
47 make etcdir=/etc || die
48 }
49
50 src_install()
51 {
52 cd ${SRCDIR}
53
54 # needed directories (lib is wanted do not use mlibdir()!!)
55 minstalldir /usr/lib || die
56 minstalldir /usr/sbin || die
57
58 # bins
59 minstallexec ssmtp /usr/sbin || die
60
61 # etc
62 minstalletc ssmtp.conf-2.60.9 ssmtp.conf /etc/ssmtp || die
63 minstalletc ${SRCDIR}/revaliases revaliases /etc/ssmtp || die
64
65 # make use net-mail/mailwrapper as default sendmail
66 mlink /usr/sbin/ssmtp /usr/sbin/sendmail.ssmtp || die
67 minstalletc mailer.conf-${MAILER_CONF_CVS_REV} mailer.conf /etc/mail || die
68
69 # mans & docs
70 minstallman ssmtp.8 || die
71 minstalldocs CHANGELOG_OLD COPYING INSTALL README TLS ssmtp.lsm || die
72 }
73
74 postinstall()
75 {
76 if [ ! -d ${MROOT}/var/spool/mail ]
77 then
78 install -d ${MROOT}/var/spool/mail
79 fi
80
81 chown root:mail ${MROOT}/var/spool/mail
82 chmod 0775 ${MROOT}/var/spool/mail
83 }