Magellan Linux

Contents of /trunk/core/ssmtp/ssmtp-2.63-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id