revert previous change, this is not useable on a static system.
This commit is contained in:
parent
cb161ecf05
commit
c907cf467c
@ -1,7 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.8 2003/12/30 23:05:08 pvalchev Exp $
|
||||
# $OpenBSD: Makefile,v 1.9 2003/12/31 02:42:39 brad Exp $
|
||||
|
||||
COMMENT= "connect() and bind() wrapper to evade packet filtering"
|
||||
|
||||
# uses LD_PRELOAD
|
||||
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
||||
|
||||
DISTNAME= ADMfzap
|
||||
PKGNAME= ADMfzap-0.1
|
||||
CATEGORIES= security
|
||||
@ -16,14 +19,9 @@ PERMIT_DISTFILES_FTP= "no license"
|
||||
MASTER_SITES= ftp://adm.freelsd.net/pub/ADM/ \
|
||||
http://adm.freelsd.net/ADM/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
.if !defined(NO_SHARED_LIBS)
|
||||
MAKE_ENV+= LIB_PATH=`/bin/ls -1 /usr/lib/libc.so.* | tail -1`
|
||||
MAKE_FLAGS= CC="${CC}"
|
||||
ALL_TARGET= openbsd
|
||||
.else
|
||||
ALL_TARGET= static
|
||||
.endif
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
@ -34,3 +32,5 @@ post-build:
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/fzap.so ${PREFIX}/lib/libfzap.so
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/ADMfzap ${PREFIX}/bin
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,7 +1,16 @@
|
||||
$OpenBSD: patch-Makefile,v 1.2 2003/12/30 23:05:08 pvalchev Exp $
|
||||
--- Makefile.orig 1999-02-15 16:49:35.000000000 -0700
|
||||
+++ Makefile 2003-12-30 16:13:20.000000000 -0700
|
||||
@@ -20,10 +20,12 @@ linux_glibc:
|
||||
$OpenBSD: patch-Makefile,v 1.3 2003/12/31 02:42:39 brad Exp $
|
||||
--- Makefile.orig 1999-02-15 18:49:35.000000000 -0500
|
||||
+++ Makefile 2003-12-30 21:35:38.000000000 -0500
|
||||
@@ -5,7 +5,7 @@ LDOPT=-ldl
|
||||
|
||||
all:
|
||||
@echo
|
||||
- @echo "make [solaris|linux_libc|linux_glibc|freebsd|clean]"
|
||||
+ @echo "make [solaris|linux_libc|linux_glibc|openbsd|freebsd|clean]"
|
||||
@echo
|
||||
@exit 1
|
||||
solaris:
|
||||
@@ -20,10 +20,9 @@ linux_glibc:
|
||||
$(CC) $(COPT) fzap.c -g -DLINUX_GLIBC $(DEBUG)
|
||||
ld -Bshareable -o fzap.so fzap.o $(LDOPT)
|
||||
|
||||
@ -11,8 +20,6 @@ $OpenBSD: patch-Makefile,v 1.2 2003/12/30 23:05:08 pvalchev Exp $
|
||||
+ $(CC) $(CFLAGS) $(COPT) fzap.c -g $(DEBUG)
|
||||
ld -Bshareable -o fzap.so fzap.o
|
||||
|
||||
+static:
|
||||
+ $(CC) $(CFLAGS) $(COPT) fzap.c -g $(DEBUG)
|
||||
|
||||
-
|
||||
clean:
|
||||
rm -f *.o *.so *~
|
||||
|
@ -1,2 +0,0 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1 2003/12/30 22:59:28 pvalchev Exp $
|
||||
lib/libfzap.so
|
@ -1,3 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2003/12/30 22:59:28 pvalchev Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.4 2003/12/31 02:42:39 brad Exp $
|
||||
bin/ADMfzap
|
||||
%%SHARED%%
|
||||
lib/libfzap.so
|
||||
|
Loading…
Reference in New Issue
Block a user