diff options
author | miwi <miwi@FreeBSD.org> | 2006-10-07 03:22:16 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-10-07 03:22:16 +0800 |
commit | 6357d3d09c03581beffe148a5b098be8b11badc7 (patch) | |
tree | c431a693eb2d730228f5ac2ef5b32f4b9a7f59b3 /security/ADMsmb | |
parent | 8b8f4e75aacdc7dfc210e2b4bbac76dc565f3eb4 (diff) | |
download | freebsd-ports-gnome-6357d3d09c03581beffe148a5b098be8b11badc7.tar.gz freebsd-ports-gnome-6357d3d09c03581beffe148a5b098be8b11badc7.tar.zst freebsd-ports-gnome-6357d3d09c03581beffe148a5b098be8b11badc7.zip |
- Fix build with gcc41
- Fix pkg-plist
PR: ports/103957
Submitted by: trasz <trasz@pin.if.uz.zgora.pl>
Diffstat (limited to 'security/ADMsmb')
-rw-r--r-- | security/ADMsmb/files/patch-ADMsmb.c | 11 | ||||
-rw-r--r-- | security/ADMsmb/files/patch-Makefile | 20 | ||||
-rw-r--r-- | security/ADMsmb/pkg-plist | 4 |
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%% |