aboutsummaryrefslogtreecommitdiffstats
path: root/irc
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2010-01-12 23:21:23 +0800
committergahr <gahr@FreeBSD.org>2010-01-12 23:21:23 +0800
commit74c3e085a20ebc256f4aacdb611689d8c1bb4f51 (patch)
tree3816921019bf80094a85e41d455681c456bd9f62 /irc
parenteb21cb34d83ecb8242226d02f29973143f6c05ad (diff)
downloadfreebsd-ports-graphics-74c3e085a20ebc256f4aacdb611689d8c1bb4f51.tar.gz
freebsd-ports-graphics-74c3e085a20ebc256f4aacdb611689d8c1bb4f51.tar.zst
freebsd-ports-graphics-74c3e085a20ebc256f4aacdb611689d8c1bb4f51.zip
- Respect NOPORTDOCS and NOPORTEXAMPLES
- Minor refactor PR: 142590 [based on] Submitted by: Sevan Janiyan <venture37@geeklan.co.uk>
Diffstat (limited to 'irc')
-rw-r--r--irc/trickyirc/Makefile21
-rw-r--r--irc/trickyirc/files/patch-core_make_make.mk11
-rw-r--r--irc/trickyirc/pkg-message1
-rw-r--r--irc/trickyirc/pkg-plist3
4 files changed, 24 insertions, 12 deletions
diff --git a/irc/trickyirc/Makefile b/irc/trickyirc/Makefile
index 679c02f46d9..745678c4df5 100644
--- a/irc/trickyirc/Makefile
+++ b/irc/trickyirc/Makefile
@@ -19,14 +19,19 @@ MAKEFILE= GNUmakefile
WRKSRC= ${WRKDIR}/trickyirc
USE_GMAKE= YES
+PLIST_FILES= bin/${PORTNAME}
+PORTDOCS= *
+PORTEXAMPLES= *
+
post-install:
- @ ${MKDIR} ${PREFIX}/share/doc/TrickyIRC
-# @ ${MKDIR} ${PREFIX}/share/examples/TrickyIRC
-# ${INSTALL_DATA} ${WRKSRC}/config.sample \
-# ${PREFIX}/share/examples/TrickyIRC
- ${INSTALL_DATA} ${WRKSRC}/README \
- ${PREFIX}/share/doc/TrickyIRC
- @${STRIP_CMD} ${PREFIX}/bin/trickyirc
- @${CAT} ${PKGMESSAGE} | ${SED} -e s:/usr/local:${PREFIX}:
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
+.if !defined(NOPORTEXAMPLES)
+ @ ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/config.sample ${EXAMPLESDIR}
+.endif
+ @${STRIP_CMD} ${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
diff --git a/irc/trickyirc/files/patch-core_make_make.mk b/irc/trickyirc/files/patch-core_make_make.mk
new file mode 100644
index 00000000000..f701b1a79e8
--- /dev/null
+++ b/irc/trickyirc/files/patch-core_make_make.mk
@@ -0,0 +1,11 @@
+--- core/make/make.mk.orig 2010-01-10 19:00:06.000000000 +0000
++++ core/make/make.mk 2010-01-10 19:00:28.000000000 +0000
+@@ -63,7 +63,7 @@
+
+ doinst :
+ cp ${BINNAME} ${INSTALLDIR}
+- chown root.bin ${INSTALLDIR}${BINNAME}
++ chown root:bin ${INSTALLDIR}${BINNAME}
+ chmod a+rx ${INSTALLDIR}${BINNAME}
+
+ # Messages
diff --git a/irc/trickyirc/pkg-message b/irc/trickyirc/pkg-message
deleted file mode 100644
index 5171927ac99..00000000000
--- a/irc/trickyirc/pkg-message
+++ /dev/null
@@ -1 +0,0 @@
- Please read /usr/local/share/doc/TrickyIRC/README before using!
diff --git a/irc/trickyirc/pkg-plist b/irc/trickyirc/pkg-plist
deleted file mode 100644
index ef10d81e821..00000000000
--- a/irc/trickyirc/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-bin/trickyirc
-share/doc/TrickyIRC/README
-@dirrm share/doc/TrickyIRC