diff options
author | Henrik Brix Andersen <brix@FreeBSD.org> | 2008-01-08 20:51:45 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@FreeBSD.org> | 2008-01-08 20:51:45 +0000 |
commit | 43ba2e0478faf9d98bb859eb5bc7ee9c8c3efd7e (patch) | |
tree | 1e8ecf4f7fa0d07f9e4bdfdda0b2953821eb2db7 /irc/bitlbee-otr/Makefile | |
parent | - Update to 2.0 (diff) |
Various improvements:
- Add rc script for running bitlbee in experimental daemon mode
- Add instructions for launching bitlbee from inetd(8)
- Install bitlbee to be run as nobody, not root
- Store saved user settings in /var/db/bitlbee, not $PREFIX/etc/bitlbee
- Do not rely on autodetection for SSL library
- Use $EXTRA_PATCHES instead of custom post-patch target
- Install port documentation files
- Install example configuration files as port examples
- Reflect custom FreeBSD paths in installed man pages and example files
- Bump PORTREVISION
Please read UPDATING for important migration information.
Approved by: Lars Sommer <lasg@lasg.dk> (maintainer), erwin (mentor)
Notes
Notes:
svn path=/head/; revision=205285
Diffstat (limited to 'irc/bitlbee-otr/Makefile')
-rw-r--r-- | irc/bitlbee-otr/Makefile | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/irc/bitlbee-otr/Makefile b/irc/bitlbee-otr/Makefile index 4da96e18ee04..56df8503ad32 100644 --- a/irc/bitlbee-otr/Makefile +++ b/irc/bitlbee-otr/Makefile @@ -7,7 +7,7 @@ PORTNAME= bitlbee PORTVERSION= 1.0.4 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= irc MASTER_SITES= http://get.bitlbee.org/src/ @@ -19,11 +19,14 @@ COMMENT= An IRC to other chat networks gateway SUB_FILES= pkg-message MAN5= bitlbee.conf.5 MAN8= bitlbee.8 +PORTDOCS= AUTHORS CHANGES CREDITS FAQ README +PORTEXAMPLES= bitlbee.conf motd.txt GNU_CONFIGURE= yes USE_GMAKE= yes USE_GNOME= glib20 USE_GETOPT_LONG=yes +USE_RC_SUBR= bitlbee PKGMESSAGE= ${WRKDIR}/pkg-message OPTIONS= MSN "Enable MSN protocol support" On \ @@ -33,7 +36,7 @@ OPTIONS= MSN "Enable MSN protocol support" On \ OPENSSL "Use openssl rather than gnutls" Off \ IPV6 "Compile IPV6 support" On -CONFIGURE_ARGS= --config=${PREFIX}/etc/bitlbee +CONFIGURE_ARGS= --config=/var/db/bitlbee .include <bsd.port.pre.mk> @@ -50,6 +53,7 @@ CONFIGURE_ARGS+=--msn=0 --ssl=bogus .if defined(WITH_OPENSSL) CONFIGURE_ARGS+=--ssl=openssl .else +CONFIGURE_ARGS+=--ssl=gnutls LIB_DEPENDS+= gnutls.13:${PORTSDIR}/security/gnutls .endif @@ -59,9 +63,7 @@ CONFIGURE_ARGS+=--ldap=${LOCALBASE} .endif .if defined(WITH_RECODE) -post-patch:: - @cd ${WRKDIR} && \ - ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/oscar-recode-patch +EXTRA_PATCHES+= ${FILESDIR}/oscar-recode-patch .endif .if defined(WITH_DEBUG) @@ -72,12 +74,29 @@ CONFIGURE_ARGS+=--debug=1 CONFIGURE_ARGS+=--ipv6=0 .endif +post-patch: + @${REINPLACE_CMD} \ + -e "s:/etc/bitlbee/motd.txt:${PREFIX}/etc/bitlbee/motd.txt:" \ + -e "s:/var/lib/bitlbee:/var/db/bitlbee:" \ + ${WRKSRC}/bitlbee.conf + @${REINPLACE_CMD} \ + -e "s:/var/lib/bitlbee:/var/db/bitlbee:" \ + ${WRKSRC}/doc/bitlbee.8 + pre-install: - @${MKDIR} -m 700 ${PREFIX}/etc/bitlbee + ${MKDIR} ${PREFIX}/etc/bitlbee + ${MKDIR} -m 0700 /var/db/bitlbee + ${CHOWN} nobody:nobody /var/db/bitlbee post-install: - @${CP} ${WRKSRC}/bitlbee.conf ${PREFIX}/etc/bitlbee/bitlbee.conf.orig - @${CP} ${WRKSRC}/motd.txt ${PREFIX}/etc/bitlbee/motd.txt.orig +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/doc/@} ${DOCSDIR} +.endif +.if !defined(NOPORTEXAMPLES) + ${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${PORTEXAMPLES:S@^@${WRKSRC}/@} ${EXAMPLESDIR} +.endif @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> |