1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/net-p2p/gift/Makefile
Doug Barton ffde46cbf9 Now that new style rc.d scripts are being run as part of the
base rcorder, hard coded variable values in these scripts
are overriding the values in /etc/rc.conf[.local] (due to
the way that variables from the latter are read at boot time).

Therefore, change the boot scripts to set default values only
if the variable is unset in /etc/rc.conf[.local]. This will
allow the service to start at boot time if it's been enabled
as the user would expect.

This change will be a noop for users who have systems that
have not yet been upgraded to the new rc.d code in the base.

In many cases there are other variables in the scripts that
should get similar treatment, however I did not change
anything other than the _enable lines. I'll leave the rest
up to the maintainers to do as they see fit.

Bump PORTREVISION to make sure that users and packages
pick up this change.
2006-01-07 06:29:57 +00:00

63 lines
1.4 KiB
Makefile

# New ports collection makefile for: giFT library
# Date created: Fri Nov 16 02:47:45 BRST 2001
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= giFT
PORTVERSION= 0.11.8.1
PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME:L}
DISTNAME= ${PORTNAME:L}-${PORTVERSION}
MAINTAINER= shoesoft@gmx.net
COMMENT= An OpenFT, Gnutella and FastTrack p2p network client
LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis
USE_AUTOTOOLS= libltdl:15
USE_BZIP2= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_PERL5= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
USE_RC_SUBR= yes
MAN1= giftd.1
DOC_FILES= AUTHORS COPYING src/ChangeLog \
INSTALL NEWS QUICKSTART README TODO
.include <bsd.port.pre.mk>
SED_SCRIPT+= -e 's,%%PREFIX%%,${PREFIX},g' \
-e 's,%%RC_SUBR%%,${RC_SUBR},g'
post-patch:
@${REINPLACE_CMD} -e \
's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g' \
${WRKSRC}/lib/Makefile.in
post-build:
@${SED} ${SED_SCRIPT} <${FILESDIR}/giftd.sh >${WRKDIR}/giftd.sh
post-install:
@${INSTALL_SCRIPT} ${WRKDIR}/giftd.sh ${PREFIX}/etc/rc.d/
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>