diff options
author | leeym <leeym@FreeBSD.org> | 2003-04-14 16:41:04 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2003-04-14 16:41:04 +0800 |
commit | ffcc69e15d0f6def13b1a0d6a9db36785a8436c8 (patch) | |
tree | f900d1a8f462d5952e99830c38d3c112bae88ee6 /mail/ssmtp | |
parent | 275bb7aa207ea8144149f35719cd05fb651d34bb (diff) | |
download | freebsd-ports-gnome-ffcc69e15d0f6def13b1a0d6a9db36785a8436c8.tar.gz freebsd-ports-gnome-ffcc69e15d0f6def13b1a0d6a9db36785a8436c8.tar.zst freebsd-ports-gnome-ffcc69e15d0f6def13b1a0d6a9db36785a8436c8.zip |
- Use MASTER_SITE_DEBIAN
- Portlint
PR: 50925
Submitted by: Kimura Fuyuki <fuyuki@hadaly.org>
Diffstat (limited to 'mail/ssmtp')
-rw-r--r-- | mail/ssmtp/Makefile | 72 | ||||
-rw-r--r-- | mail/ssmtp/pkg-message | 2 |
2 files changed, 16 insertions, 58 deletions
diff --git a/mail/ssmtp/Makefile b/mail/ssmtp/Makefile index 13eee514abef..818bbc001d89 100644 --- a/mail/ssmtp/Makefile +++ b/mail/ssmtp/Makefile @@ -8,66 +8,24 @@ PORTNAME= ssmtp PORTVERSION= 2.60.3 CATEGORIES= mail -MASTER_SITES= http://ftp.us.debian.org/debian/%SUBDIR%/ \ - http://http.us.debian.org/debian/%SUBDIR%/ \ - http://ftp.debian.org/debian/%SUBDIR%/ \ - http://ftp.egr.msu.edu/debian/%SUBDIR%/ \ - http://mirrors.kernel.org/debian/%SUBDIR%/ \ - http://archive.progeny.com/debian/%SUBDIR%/ \ - http://debian.crosslink.net/debian/%SUBDIR%/ \ - http://ftp-mirror.internap.com/pub/debian/%SUBDIR%/ \ - http://ftp.cerias.purdue.edu/pub/os/debian/%SUBDIR%/ \ - http://ftp.lug.udel.edu/debian/%SUBDIR%/ \ - http://debian.lcs.mit.edu/debian/%SUBDIR%/ \ - http://debian.teleglobe.net/%SUBDIR%/ \ - http://debian.rutgers.edu/%SUBDIR%/ \ - http://debian.oregonstate.edu/debian/%SUBDIR%/ \ - http://mirrors.terrabox.com/debian/%SUBDIR%/ \ - http://ftp.de.debian.org/debian/%SUBDIR%/ \ - http://ftp.at.debian.org/debian/%SUBDIR%/ \ - http://ftp.bg.debian.org/debian/%SUBDIR%/ \ - http://ftp.cz.debian.org/debian/%SUBDIR%/ \ - http://ftp.dk.debian.org/debian/%SUBDIR%/ \ - http://ftp.ee.debian.org/debian/%SUBDIR%/ \ - http://ftp.fi.debian.org/debian/%SUBDIR%/ \ - http://ftp.fr.debian.org/debian/%SUBDIR%/ \ - http://ftp.hr.debian.org/debian/%SUBDIR%/ \ - http://ftp.hu.debian.org/debian/%SUBDIR%/ \ - http://ftp.ie.debian.org/debian/%SUBDIR%/ \ - http://ftp.is.debian.org/debian/%SUBDIR%/ \ - http://ftp.it.debian.org/debian/%SUBDIR%/ \ - http://ftp.nl.debian.org/debian/%SUBDIR%/ \ - http://ftp.no.debian.org/debian/%SUBDIR%/ \ - http://ftp.pl.debian.org/debian/%SUBDIR%/ \ - http://ftp.si.debian.org/debian/%SUBDIR%/ \ - http://ftp.es.debian.org/debian/%SUBDIR%/ \ - http://ftp.se.debian.org/debian/%SUBDIR%/ \ - http://ftp.tr.debian.org/debian/%SUBDIR%/ \ - http://ftp.uk.debian.org/debian/%SUBDIR%/ \ - http://ftp.au.debian.org/debian/%SUBDIR%/ \ - http://ftp.wa.au.debian.org/debian/%SUBDIR%/ \ - http://ftp.nz.debian.org/debian/%SUBDIR%/ \ - http://ftp.jp.debian.org/debian/%SUBDIR%/ \ - http://linux.csie.nctu.edu.tw/debian/%SUBDIR%/ \ - http://debian.linux.org.tw/debian/%SUBDIR%/ \ - http://linux.cdpa.nsysu.edu.tw/debian/%SUBDIR%/ \ - http://ftp.br.debian.org/debian/%SUBDIR%/ \ - http://ftp.cl.debian.org/debian/%SUBDIR%/ -MASTER_SITE_SUBDIR= pool/main/s/ssmtp -DISTNAME= ssmtp_${PORTVERSION} +MASTER_SITES= ${MASTER_SITE_DEBIAN} +MASTER_SITE_SUBDIR= pool/main/s/${PORTNAME} +DISTNAME= ${PORTNAME}_${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Extremely simple MTA to get mail off the system to a mail hub -WRKSRC= ${WRKDIR}/ssmtp-2.60 +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/\.[0-9]+$//} USE_OPENSSL= yes -GNU_CONFIGURE= yes +GNU_CONFIGURE= yes USE_GMAKE= yes USE_REINPLACE= yes CONFIGURE_ARGS= --enable-ssl --enable-inet6 +MAILERCONF= /etc/mail/mailer.conf +TRUE= /usr/bin/true MAN8= ssmtp.8 @@ -77,13 +35,13 @@ post-configure: @${REINPLACE_CMD} -e "s, /etc, ${PREFIX}/etc,g" ${WRKSRC}/ssmtp.8 replace: - @${REINPLACE_CMD} -e 's,^[^#],#&,g' /etc/mail/mailer.conf - @${ECHO_CMD} "sendmail ${PREFIX}/sbin/ssmtp" >> /etc/mail/mailer.conf - @${ECHO_CMD} "send-mail ${PREFIX}/sbin/ssmtp" >> /etc/mail/mailer.conf - @${ECHO_CMD} "mailq ${PREFIX}/sbin/ssmtp" >> /etc/mail/mailer.conf - @${ECHO_CMD} "newaliases ${PREFIX}/sbin/ssmtp" >> /etc/mail/mailer.conf - @${ECHO_CMD} "hoststat /usr/bin/true" >> /etc/mail/mailer.conf - @${ECHO_CMD} "purgestat /usr/bin/true" >> /etc/mail/mailer.conf + @${REINPLACE_CMD} -e 's,^[^#],#&,g' ${MAILERCONF} + @${ECHO_CMD} "sendmail ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF} + @${ECHO_CMD} "send-mail ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF} + @${ECHO_CMD} "mailq ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF} + @${ECHO_CMD} "newaliases ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF} + @${ECHO_CMD} "hoststat ${TRUE}" >> ${MAILERCONF} + @${ECHO_CMD} "purgestat ${TRUE}" >> ${MAILERCONF} post-install: @${ECHO_MSG} -------------------------------------------------- @@ -91,6 +49,6 @@ post-install: @${ECHO_MSG} "To replace sendmail with ssmtp type make replace" @${ECHO_MSG} @${ECHO_MSG} -------------------------------------------------- - @${SED} -e 's#/etc#${PREFIX}/etc#' ${PKGMESSAGE} + @${SED} 's#%%PREFIX%%#${PREFIX}#' < ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/mail/ssmtp/pkg-message b/mail/ssmtp/pkg-message index f057eb99ca71..2c4f05d40401 100644 --- a/mail/ssmtp/pkg-message +++ b/mail/ssmtp/pkg-message @@ -1,5 +1,5 @@ sSMTP has been installed successfully. However, before you can use the program, you should copy the files -"revaliases.sample" and "ssmtp.conf.sample" in /usr/local/etc/ssmtp to +"revaliases.sample" and "ssmtp.conf.sample" in %%PREFIX%%/etc/ssmtp to "revaliases" and "ssmtp.conf" respectively and edit them to suit your needs. |