1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Fix NOPORTEXAMPLES=yes case.

- Add WITH_IPV6 option.
This commit is contained in:
Hiroki Sato 2008-10-05 12:30:44 +00:00
parent 657501c6d3
commit 37d5e627fd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=221234
4 changed files with 49 additions and 30 deletions

View File

@ -8,7 +8,7 @@
PORTNAME= spegla
PORTVERSION= 1.1p4
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= ftp ipv6
MASTER_SITES= ftp://subzero.campus.luth.se/pub/spegla/ \
ftp://ftp.luth.se/pub/unix/mirror/
@ -20,21 +20,26 @@ MAINTAINER= hrs@FreeBSD.org
COMMENT= A mirror program for FTP sites (written in C)
MAKE_ARGS= MANDIR=${MAN1PREFIX}/man/man
PLIST_FILES= bin/spegla
PORTEXAMPLES= freebsd.org spegla.conf spegla.sh
MANCOMPRESSED= yes
MAN1= spegla.1
post-extract:
.for file in engine.c regcomp.c regerror.c regexec.c regfree.c cclass.h cname.h regex.h regex2.h utils.h
@${CP} ${WRKSRC}/regex/${file} ${WRKSRC}
.endfor
pre-install:
@${MKDIR} ${EXAMPLESDIR}
OPTIONS= IPV6 "IPv6 support" on
.if !defined(NOPORTEXAMPLES)
post-install:
${INSTALL_DATA} ${WRKSRC}/freebsd.org ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/spegla.conf ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/spegla.sh ${EXAMPLESDIR}
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && \
${INSTALL_DATA} freebsd.org spegla.conf ${EXAMPLESDIR} && \
${INSTALL_SCRIPT} spegla.sh ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_IPV6)
MAKE_ARGS+= -DINET6
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,32 @@
--- Makefile.orig 2008-10-05 21:20:36.000000000 +0900
+++ Makefile 2008-10-05 21:22:33.000000000 +0900
@@ -8,7 +8,8 @@
PROG = spegla
SRCS = jftp.c parserow.c spegla.c tgetopt.c container.c spf_util.c \
- que_syms.c e_err.c
+ que_syms.c e_err.c \
+ regcomp.c regerror.c regexec.c regfree.c
.if !(defined(HAVE_STRLCPY) && ${HAVE_STRLCPY} == "yes")
SRCS += strlcpy.c
CPPFLAGS += -DNO_STRLCPY
@@ -16,14 +17,6 @@
MAN = spegla.1
-FILES = spegla.sh spegla.conf
-FILESDIR = ${PREFIX}/share/examples/spegla
-
-filesinstall:: ${PREFIX}/share/examples/spegla
-
-${PREFIX}/share/examples/spegla:
- mkdir -p ${PREFIX}/share/examples/spegla
-
#WARNS = 2
CFLAGS += -Wall
LDADD += -lcompat
@@ -73,3 +66,4 @@
cp ${.CURDIR}/../tgetopt/tgetopt.c tgetopt.c
.endif
+.PATH: ${.CURDIR}/regex

View File

@ -1,12 +0,0 @@
--- Makefile.dist Sat May 27 22:50:20 2000
+++ Makefile Thu Jun 29 20:06:23 2000
@@ -8,7 +8,8 @@
PROG = spegla
SRCS = jftp.c parserow.c spegla.c tgetopt.c container.c spf_util.c \
- que_syms.c e_err.c
+ que_syms.c e_err.c \
+ regcomp.c regerror.c regexec.c regfree.c
.if !(defined(HAVE_STRLCPY) && ${HAVE_STRLCPY} == "yes")
SRCS += strlcpy.c
CPPFLAGS += -DNO_STRLCPY

View File

@ -1,6 +0,0 @@
@comment $FreeBSD$
bin/spegla
%%EXAMPLESDIR%%/freebsd.org
%%EXAMPLESDIR%%/spegla.conf
%%EXAMPLESDIR%%/spegla.sh
@dirrm %%EXAMPLESDIR%%