1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Support CFLAGS/PREFIX/LOCALBASE properly

- Add WWW: line into pkg/DESCR

PR:		19345
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
This commit is contained in:
Alexander Langer 2000-06-28 12:53:16 +00:00
parent fe7ece28b5
commit 5b582eae63
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=29934
12 changed files with 57 additions and 48 deletions

View File

@ -19,14 +19,18 @@ LIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses
.endif
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS=-L/usr/local/lib
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
ALL_TARGET= trafshow
MAN1= trafshow.1
post-patch:
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.c
do-install:
@ ${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
@ ${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1
@ ${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow
${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow
.include <bsd.port.post.mk>

View File

@ -5,7 +5,7 @@
(void) sprintf(buf, "%s/.%s", pw->pw_dir, program_name);
if ((fp = fopen(buf, "r")) == NULL) {
- (void) strcpy(buf, "/etc/");
+ (void) strcpy(buf, "/usr/local/etc/");
+ (void) strcpy(buf, "%%PREFIX%%/etc/");
(void) strcat(buf, program_name);
if ((fp = fopen(buf, "r")) == NULL) return 0;
}

View File

@ -1,16 +1,13 @@
--- Makefile.in.orig Sun Aug 23 21:54:16 1998
+++ Makefile.in Sun Feb 6 22:12:03 2000
@@ -29,10 +29,11 @@
--- Makefile.in.orig Mon Aug 24 13:54:16 1998
+++ Makefile.in Tue May 2 00:51:47 2000
@@ -28,8 +28,8 @@
PROG = trafshow
CC = @CC@
CCOPT = @V_CCOPT@
-CCOPT = @V_CCOPT@
-INCLS = -I. @V_INCLS@
+INCLS = -I. -I/usr/local/include @V_INCLS@
+CCOPT = @CFLAGS@
+INCLS = -I. @CPPFLAGS@
DEFS = @DEFS@
-CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
+CFLAGS ?= -O2
+CFLAGS += $(DEFS) $(INCLS)
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
CFLAGS = $(CCOPT) $(DEFS) $(INCLS)

View File

@ -11,5 +11,7 @@ pseudo-device bpfilter 4 # Berkeley packet filter
The number after bpfilter is the number of interfaces that can be
examined simultaneously. See section 5.8.3 of Handbook for details.
WWW: http://www.rinetsoft.nsk.su/trafshow/index_en.html
- Igor
igor@zynaps.ru

View File

@ -19,14 +19,18 @@ LIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses
.endif
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS=-L/usr/local/lib
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
ALL_TARGET= trafshow
MAN1= trafshow.1
post-patch:
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.c
do-install:
@ ${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
@ ${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1
@ ${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow
${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow
.include <bsd.port.post.mk>

View File

@ -5,7 +5,7 @@
(void) sprintf(buf, "%s/.%s", pw->pw_dir, program_name);
if ((fp = fopen(buf, "r")) == NULL) {
- (void) strcpy(buf, "/etc/");
+ (void) strcpy(buf, "/usr/local/etc/");
+ (void) strcpy(buf, "%%PREFIX%%/etc/");
(void) strcat(buf, program_name);
if ((fp = fopen(buf, "r")) == NULL) return 0;
}

View File

@ -1,16 +1,13 @@
--- Makefile.in.orig Sun Aug 23 21:54:16 1998
+++ Makefile.in Sun Feb 6 22:12:03 2000
@@ -29,10 +29,11 @@
--- Makefile.in.orig Mon Aug 24 13:54:16 1998
+++ Makefile.in Tue May 2 00:51:47 2000
@@ -28,8 +28,8 @@
PROG = trafshow
CC = @CC@
CCOPT = @V_CCOPT@
-CCOPT = @V_CCOPT@
-INCLS = -I. @V_INCLS@
+INCLS = -I. -I/usr/local/include @V_INCLS@
+CCOPT = @CFLAGS@
+INCLS = -I. @CPPFLAGS@
DEFS = @DEFS@
-CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
+CFLAGS ?= -O2
+CFLAGS += $(DEFS) $(INCLS)
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
CFLAGS = $(CCOPT) $(DEFS) $(INCLS)

View File

@ -11,5 +11,7 @@ pseudo-device bpfilter 4 # Berkeley packet filter
The number after bpfilter is the number of interfaces that can be
examined simultaneously. See section 5.8.3 of Handbook for details.
WWW: http://www.rinetsoft.nsk.su/trafshow/index_en.html
- Igor
igor@zynaps.ru

View File

@ -19,14 +19,18 @@ LIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses
.endif
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS=-L/usr/local/lib
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
ALL_TARGET= trafshow
MAN1= trafshow.1
post-patch:
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.c
do-install:
@ ${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
@ ${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1
@ ${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow
${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow
.include <bsd.port.post.mk>

View File

@ -5,7 +5,7 @@
(void) sprintf(buf, "%s/.%s", pw->pw_dir, program_name);
if ((fp = fopen(buf, "r")) == NULL) {
- (void) strcpy(buf, "/etc/");
+ (void) strcpy(buf, "/usr/local/etc/");
+ (void) strcpy(buf, "%%PREFIX%%/etc/");
(void) strcat(buf, program_name);
if ((fp = fopen(buf, "r")) == NULL) return 0;
}

View File

@ -1,16 +1,13 @@
--- Makefile.in.orig Sun Aug 23 21:54:16 1998
+++ Makefile.in Sun Feb 6 22:12:03 2000
@@ -29,10 +29,11 @@
--- Makefile.in.orig Mon Aug 24 13:54:16 1998
+++ Makefile.in Tue May 2 00:51:47 2000
@@ -28,8 +28,8 @@
PROG = trafshow
CC = @CC@
CCOPT = @V_CCOPT@
-CCOPT = @V_CCOPT@
-INCLS = -I. @V_INCLS@
+INCLS = -I. -I/usr/local/include @V_INCLS@
+CCOPT = @CFLAGS@
+INCLS = -I. @CPPFLAGS@
DEFS = @DEFS@
-CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
+CFLAGS ?= -O2
+CFLAGS += $(DEFS) $(INCLS)
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
CFLAGS = $(CCOPT) $(DEFS) $(INCLS)

View File

@ -11,5 +11,7 @@ pseudo-device bpfilter 4 # Berkeley packet filter
The number after bpfilter is the number of interfaces that can be
examined simultaneously. See section 5.8.3 of Handbook for details.
WWW: http://www.rinetsoft.nsk.su/trafshow/index_en.html
- Igor
igor@zynaps.ru