aboutsummaryrefslogtreecommitdiff
path: root/security/ADMsmb
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2013-07-31 08:33:56 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2013-07-31 08:33:56 +0000
commitf683aceac0a37ac7ff8491aaebd15434fdd65633 (patch)
tree10c93dea18b0622038e5ea521ca218120d501fb4 /security/ADMsmb
parent07856ccb501c7b8ddaf00196346e0974dd580231 (diff)
downloadports-f683aceac0a37ac7ff8491aaebd15434fdd65633.tar.gz
ports-f683aceac0a37ac7ff8491aaebd15434fdd65633.zip
Notes
Diffstat (limited to 'security/ADMsmb')
-rw-r--r--security/ADMsmb/Makefile7
-rw-r--r--security/ADMsmb/files/patch-Makefile24
-rw-r--r--security/ADMsmb/pkg-descr2
3 files changed, 11 insertions, 22 deletions
diff --git a/security/ADMsmb/Makefile b/security/ADMsmb/Makefile
index 2f37d88a9d90..cefcd51e7354 100644
--- a/security/ADMsmb/Makefile
+++ b/security/ADMsmb/Makefile
@@ -1,4 +1,4 @@
-# Created by: tutus@trynet.eu.org
+# Created by: Jacek Serwatynski <tutus@trynet.eu.org>
# $FreeBSD$
PORTNAME= ADMsmb
@@ -11,7 +11,8 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Security scanner for Samba
-MAKE_JOBS_UNSAFE= yes
+USES= gmake
+MAKE_ARGS= CC="${CC}" FLAGS1="${CFLAGS}"
post-patch:
@${FIND} ${WRKSRC} -name "*.o" -delete
@@ -19,7 +20,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ADMsmb ${PREFIX}/bin
- ${MKDIR} ${PREFIX}/share/ADMsmb
+ @${MKDIR} ${PREFIX}/share/ADMsmb
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/ADMsmb
.include <bsd.port.mk>
diff --git a/security/ADMsmb/files/patch-Makefile b/security/ADMsmb/files/patch-Makefile
index c49a05814384..36f6dd76ef8e 100644
--- a/security/ADMsmb/files/patch-Makefile
+++ b/security/ADMsmb/files/patch-Makefile
@@ -1,20 +1,10 @@
--- Makefile.orig Tue Oct 3 19:42:32 2006
+++ Makefile Tue Oct 3 19:43:32 2006
-@@ -11,7 +11,7 @@
- FLAGS1 = -O2 -fno-strict-aliasing -pipe -march=pentium -static
- LIBS1 =
+@@ -108,6 +108,7 @@
+ @$(SHELL) $(srcdir)checkos.sh $(FLAGSM)
+ @echo "Using CFLAGS = $(CFLAGS)"
+ @echo "Using LIBS = $(LIBS)"
++ @echo "Using CC = $(CC)"
--CC = gcc
-+#CC = gcc
-
- # This may help with some versions of make
- SHELL = /bin/sh
-@@ -56,7 +56,7 @@
- CFLAGS3 = -DLOCKDIR=\"$(LOCKDIR)\" -DSMBRUN=\"$(SMBRUN)\" -DCODEPAGEDIR=\"$(CODEPAGEDIR)\"
- CFLAGS4 = -DWORKGROUP=\"$(WORKGROUP)\" -DGUEST_ACCOUNT=\"$(GUESTACCOUNT)\" -DDRIVERFILE=\"$(DRIVERFILE)\"
- CFLAGS5 = $(CFLAGS1) $(CFLAGS2) $(CFLAGS3) $(CFLAGS4) $(FLAGSM) $(AFS_FLAGS) $(KRB5_FLAGS) $(KRB4_FLAGS) $(RPM_OPT_FLAGS)
--CFLAGS = $(CFLAGS5) $(PAM_FLAGS) $(DCE_FLAGS) $(DES_FLAGS) $(PASSWD_FLAGS) $(VTP_FLAGS)
-+CFLAGS += $(CFLAGS5) $(PAM_FLAGS) $(DCE_FLAGS) $(DES_FLAGS) $(PASSWD_FLAGS) $(VTP_FLAGS)
- LIBS = $(LIBS1) $(LIBSM) $(PAM_LIBS) $(DCE_LIBS) $(KRB5_LIBS) $(KRB4_LIBS) $(DES_LIB)
-
- INCLUDES1 = $(srcdir)version.h $(srcdir)local.h $(srcdir)includes.h $(srcdir)smb.h
+ .SUFFIXES:
+ .SUFFIXES: .c .o .h
diff --git a/security/ADMsmb/pkg-descr b/security/ADMsmb/pkg-descr
index 8c582c03372f..053f1fad9114 100644
--- a/security/ADMsmb/pkg-descr
+++ b/security/ADMsmb/pkg-descr
@@ -2,5 +2,3 @@ ADM smb is a security scanner for Samba
/* based on the src of the smbclient from the samba team */
ADMsmb will perform a complete audit of samba for you on a host you
provide.
-
-WWW: http://adm.freelsd.net/ADM