aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/gotmail/Makefile26
-rw-r--r--mail/gotmail/pkg-plist5
2 files changed, 13 insertions, 18 deletions
diff --git a/mail/gotmail/Makefile b/mail/gotmail/Makefile
index d93124838001..24e22a684afb 100644
--- a/mail/gotmail/Makefile
+++ b/mail/gotmail/Makefile
@@ -14,21 +14,21 @@ RUN_DEPENDS= curl:${PORTSDIR}/ftp/curl \
p5-URI>=0:${PORTSDIR}/net/p5-URI \
p5-Net>=0:${PORTSDIR}/net/p5-Net
-MAN1= ${PORTNAME}.1
-USES= perl5
+USES= perl5 shebangfix
+
+PLIST_FILES= bin/gotmail man/man1/gotmail.1.gz
+SHEBANG_FILES= gotmail
+PORTDOCS= ChangeLog README sample.gotmailrc
+
+OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
do-install:
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.man \
- ${MANPREFIX}/man/man1/${PORTNAME}.1
- ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-
-post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for i in ChangeLog README sample.gotmailrc
- ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
-.endfor # i in ChangeLog README sample.gotmailrc
-.endif # !defined(NOPORTDOCS)
+ ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for f in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
+.endfor
.include <bsd.port.mk>
diff --git a/mail/gotmail/pkg-plist b/mail/gotmail/pkg-plist
deleted file mode 100644
index 24fb432d7d36..000000000000
--- a/mail/gotmail/pkg-plist
+++ /dev/null
@@ -1,5 +0,0 @@
-bin/gotmail
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/sample.gotmailrc
-%%PORTDOCS%%@dirrm %%DOCSDIR%%