blob: b0dd2be62f11bb0a1be970429b4fe13b181aed3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# $NetBSD: Makefile,v 1.9.4.1 2004/12/13 10:21:33 salo Exp $
# FreeBSD Id: ports/mail/ssmtp/Makefile,v 1.10 2003/04/14 08:41:04 leeym Exp
#
# TLS functionality needs testing. Please let me know the result,
# and preferably info about your system.
#
# pkg@pop.707.to
# Toru TAKAMIZU
DISTNAME= ssmtp_2.61.orig
PKGNAME= ssmtp-2.61
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/s/ssmtp/}
MAINTAINER= pkg@pop.707.to
HOMEPAGE= http://packages.debian.org/testing/mail/ssmtp.html
COMMENT= Extremely simple MTA to forward mail to a mail hub
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV:S/.orig$//}
USE_BUILDLINK3= YES
USE_PKGINSTALL= YES
USE_GNU_TOOLS+= make
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --enable-ssl
.include "../../mk/bsd.prefs.mk"
.if !empty(USE_INET6:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --enable-inet6
.endif
PKG_SYSCONFSUBDIR= ${PKGBASE}
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EGDIR}/ssmtp.conf ${PKG_SYSCONFDIR}/ssmtp.conf
CONF_FILES+= ${EGDIR}/revaliases ${PKG_SYSCONFDIR}/revaliases
post-extract:
@${RM} -rf ${WRKSRC}/RCS
post-patch:
for f in ${WRKSRC}/ssmtp.c ${WRKSRC}/ssmtp.conf ; do \
${MV} -f $$f $$f.orig ; \
${SED} "s,/etc/ssl/certs/,${PKG_SYSCONFDIR}/,g" \
$${f}.orig > $${f} ; \
${RM} -f $$f.orig ; \
done
for f in ${WRKSRC}/ssmtp.8 ; do \
${MV} -f $$f $$f.orig ; \
${SED} "s,/etc/ssmtp/,${PKG_SYSCONFDIR}/,g" \
$$f.orig > $$f ; \
${RM} -f $$f.orig ; \
done
post-build:
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/mailer.conf \
> ${WRKDIR}/mailer.conf
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/ssmtp.conf ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/revaliases ${EGDIR}
${INSTALL_DATA} ${WRKDIR}/mailer.conf ${EGDIR}
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|