Magellan Linux

Annotation of /trunk/core/ssmtp/ssmtp-2.62-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 276 - (hide annotations) (download)
Thu Nov 20 12:15:28 2008 UTC (15 years, 7 months ago) by niro
File size: 2069 byte(s)
-ver bump to 2.62-r1
1 niro 276 # $Header: /magellan-cvs/smage/ssmtp/ssmtp-2.61-r6.smage2,v 1.1 2008/02/11 23:09:40 niro Exp $
2    
3     PNAME="ssmtp"
4     PVER="2.62"
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     mirror://${PNAME}/${PNAME}-2.61-bug127592.patch
33     )
34    
35     UP2DATE="updatecmd http://ftp.debian.org/debian/pool/main/${PNAME:0:1}/${PNAME} | grep .tar.gz | sed -n 's/.*_\(.*\).t.*/\1/;s/.orig//;$ p'"
36    
37     src_prepare()
38     {
39     munpack ${SRCFILE} || die
40     cd ${SRCDIR}
41    
42     mpatch ${PNAME}-2.61-bug127592.patch || die
43     }
44    
45     src_compile()
46     {
47     cd ${SRCDIR}
48    
49     mconfigure \
50     --sysconfdir=/etc/ssmtp \
51     --enable-ssl \
52     --enable-inet6 \
53     --enable-md5auth \
54     || die
55    
56     make clean || die
57     make etcdir=/etc || die
58     }
59    
60     src_install()
61     {
62     cd ${SRCDIR}
63    
64     # needed directories (lib is wanted do not use mlibdir()!!)
65     minstalldir /usr/lib || die
66     minstalldir /usr/sbin || die
67    
68     # bins
69     minstallexec ssmtp /usr/sbin || die
70    
71     # etc
72     minstalletc ssmtp.conf-2.60.9 ssmtp.conf /etc/ssmtp || die
73     minstalletc ${SRCDIR}/revaliases revaliases /etc/ssmtp || die
74    
75     # make use net-mail/mailwrapper as default sendmail
76     mlink /usr/sbin/ssmtp /usr/sbin/sendmail.ssmtp || die
77     minstalletc mailer.conf-${MAILER_CONF_CVS_REV} mailer.conf /etc/mail || die
78    
79     # mans & docs
80     minstallman ssmtp.8 || die
81     minstalldocs CHANGELOG_OLD COPYING INSTALL README TLS ssmtp.lsm || die
82     }
83    
84     postinstall()
85     {
86     if [ ! -d ${MROOT}/var/spool/mail ]
87     then
88     install -d ${MROOT}/var/spool/mail
89     fi
90    
91     chown root:mail ${MROOT}/var/spool/mail
92     chmod 0775 ${MROOT}/var/spool/mail
93     }

Properties

Name Value
svn:keywords Id