Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3190 - (show annotations) (download)
Wed Oct 14 12:58:51 2009 UTC (14 years, 7 months ago) by niro
File size: 1872 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}"
22
23 sminclude mtools
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_prepare()
37 {
38 munpack ${SRCFILE} || die
39 }
40
41 src_compile()
42 {
43 cd ${SRCDIR}
44
45 mconfigure \
46 --sysconfdir=/etc/ssmtp \
47 --enable-ssl \
48 --enable-inet6 \
49 --enable-md5auth \
50 || die
51
52 make clean || die
53 make etcdir=/etc || die
54 }
55
56 src_install()
57 {
58 cd ${SRCDIR}
59
60 # needed directories (lib is wanted do not use mlibdir()!!)
61 minstalldir /usr/lib || die
62 minstalldir /usr/sbin || die
63
64 # bins
65 minstallexec ssmtp /usr/sbin || die
66
67 # etc
68 minstalletc ssmtp.conf-2.60.9 ssmtp.conf /etc/ssmtp || die
69 minstalletc ${SRCDIR}/revaliases revaliases /etc/ssmtp || die
70
71 # make use net-mail/mailwrapper as default sendmail
72 mlink /usr/sbin/ssmtp /usr/sbin/sendmail.ssmtp || die
73 minstalletc mailer.conf-${MAILER_CONF_CVS_REV} mailer.conf /etc/mail || die
74
75 # mans & docs
76 minstallman ssmtp.8 || die
77 minstalldocs CHANGELOG_OLD COPYING INSTALL README TLS ssmtp.lsm || die
78 }
79
80 postinstall()
81 {
82 if [ ! -d ${MROOT}/var/spool/mail ]
83 then
84 install -d ${MROOT}/var/spool/mail
85 fi
86
87 chown root:mail ${MROOT}/var/spool/mail
88 chmod 0775 ${MROOT}/var/spool/mail
89 }

Properties

Name Value
svn:keywords Id