aboutsummaryrefslogtreecommitdiff
path: root/security/ADMsmb
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-10-06 19:22:16 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-10-06 19:22:16 +0000
commitcbc4e9a987a58d5a1ceb139cd7cb91b04a544c95 (patch)
tree2f29904d1f2d271d8b66799c2c22a4dffaeb58ea /security/ADMsmb
parent0ca55299797c521e4764fd82884083bc0a13603f (diff)
downloadports-cbc4e9a987a58d5a1ceb139cd7cb91b04a544c95.tar.gz
ports-cbc4e9a987a58d5a1ceb139cd7cb91b04a544c95.zip
- Fix build with gcc41
- Fix pkg-plist PR: ports/103957 Submitted by: trasz <trasz@pin.if.uz.zgora.pl>
Notes
Notes: svn path=/head/; revision=174664
Diffstat (limited to 'security/ADMsmb')
-rw-r--r--security/ADMsmb/files/patch-ADMsmb.c11
-rw-r--r--security/ADMsmb/files/patch-Makefile20
-rw-r--r--security/ADMsmb/pkg-plist4
3 files changed, 33 insertions, 2 deletions
diff --git a/security/ADMsmb/files/patch-ADMsmb.c b/security/ADMsmb/files/patch-ADMsmb.c
new file mode 100644
index 000000000000..69fb2f098611
--- /dev/null
+++ b/security/ADMsmb/files/patch-ADMsmb.c
@@ -0,0 +1,11 @@
+--- ADMsmb.c.orig Tue Oct 3 19:48:45 2006
++++ ADMsmb.c Tue Oct 3 19:48:49 2006
+@@ -139,7 +139,7 @@
+ {
+ usleep (100000);
+
+- if (recvfrom (socket_client, buffer2,sizeof(buffer2), 0, (struct sockaddr *) &sin_dst, &(int) longueur) != -1)
++ if (recvfrom (socket_client, buffer2,sizeof(buffer2), 0, (struct sockaddr *) &sin_dst, &longueur) != -1)
+ {
+
+ if (nmb2->rep_num != 0)
diff --git a/security/ADMsmb/files/patch-Makefile b/security/ADMsmb/files/patch-Makefile
new file mode 100644
index 000000000000..c49a05814384
--- /dev/null
+++ b/security/ADMsmb/files/patch-Makefile
@@ -0,0 +1,20 @@
+--- 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 =
+
+-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
diff --git a/security/ADMsmb/pkg-plist b/security/ADMsmb/pkg-plist
index 790982d09799..04eb9d67af8d 100644
--- a/security/ADMsmb/pkg-plist
+++ b/security/ADMsmb/pkg-plist
@@ -1,3 +1,3 @@
bin/ADMsmb
-share/ADMsmb/README
-@dirrm share/ADMsmb
+%%DATADIR%%/README
+@dirrm %%DATADIR%%