1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Support STAGEDIR [1]

- Add license [1]
- Use @sample to handle config files

PR:	ports/188936 (based on) [1]
Submitted by:	Takefu <takefu@airport.fm> [1]
Approved by:	Janos Mohacsi <jmohacsi@bsd.hu> (maintainer)
This commit is contained in:
Alex Kozlov 2014-05-07 17:08:56 +00:00
parent 07f0b59f2c
commit f7a6608a8d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353178
3 changed files with 18 additions and 32 deletions

View File

@ -10,27 +10,28 @@ MASTER_SITES= ftp://ftp.pasta.cs.uit.no/pub/Vermicelli/
MAINTAINER= jmohacsi@bsd.hu
COMMENT= Lightweight http proxy to help IPv4 only browsers
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/./-/}
USE_RC_SUBR= www6to4
NO_STAGE= yes
PORTDOCS= README
ALL_TARGET= www6to4
post-patch:
@${REINPLACE_CMD} -e 's,/etc,${PREFIX}/etc,' \
${WRKSRC}/www6to4.c
@${REINPLACE_CMD} -e 's,/etc,${ETCDIR},' \
${WRKSRC}/www6to4.c ${WRKSRC}/www6to4.conf
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/www6to4 ${PREFIX}/sbin
@if [ ! -d ${PREFIX}/etc/www6to4 ]; then \
${MKDIR} ${PREFIX}/etc/www6to4; fi
${INSTALL_PROGRAM} ${WRKSRC}/www6to4 ${STAGEDIR}${PREFIX}/sbin
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/www6to4.conf \
${PREFIX}/etc/www6to4/www6to4.conf.sample
${STAGEDIR}${ETCDIR}/www6to4.conf.sample
${INSTALL_DATA} ${WRKSRC}/www6to4_forward.conf \
${PREFIX}/etc/www6to4/www6to4_forward.conf.sample
.if !defined(NOPORTDOCS)
if [ ! -d ${DOCSDIR} ]; then \
${MKDIR} ${DOCSDIR}; fi
${INSTALL_DATA} ${WRKSRC}/README \
${DOCSDIR}
.endif
${STAGEDIR}${ETCDIR}/www6to4_forward.conf.sample
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,13 +0,0 @@
*** Makefile.orig Fri Mar 22 00:24:37 2002
--- Makefile Fri Mar 22 00:25:17 2002
***************
*** 6,11 ****
--- 6,13 ----
OBJS = www6to4.o parsers.c loaders.o socket.o
+ all: $(PROG)
+
$(PROG): $(OBJS)
$(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LDFLAGS)

View File

@ -1,6 +1,4 @@
sbin/www6to4
etc/www6to4/www6to4.conf.sample
etc/www6to4/www6to4_forward.conf.sample
%%PORTDOCS%%%%DOCSDIR%%/README
@dirrm etc/www6to4
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@sample %%ETCDIR%%/www6to4.conf.sample
@sample %%ETCDIR%%/www6to4_forward.conf.sample
@dirrmtry %%ETCDIR%%