ports/94739: [patch] expose HAVE_ENCRYPTED_PASSWORDS
Stefan Bethke
stb at lassitu.de
Mon Mar 20 16:40:18 UTC 2006
>Number: 94739
>Category: ports
>Synopsis: [patch] expose HAVE_ENCRYPTED_PASSWORDS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Mar 20 16:40:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Stefan Bethke
>Release: 6-stable
>Organization:
>Environment:
>Description:
Taylor UUCP may use encrypted passwords in it's own passwd file instead of clear-text ones if the corresponding define is set in policy.h. Expose this setting so the port can be built using the WITH_ENCRYPTED_PASSWORDS knob.
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/freebsd-uucp/Makefile,v
retrieving revision 1.36
diff -u -r1.36 Makefile
--- Makefile 30 Dec 2005 08:17:50 -0000 1.36
+++ Makefile 20 Mar 2006 16:28:12 -0000
@@ -39,6 +39,10 @@
CONFLICTS?= freebsd-uucp-pam-1.*
.endif
+.if defined(WITH_ENCRYPTED_PASSWORDS)
+MAKE_ENV+= WITH_ENCRYPTED_PASSWORDS=${WITH_ENCRYPTED_PASSWORDS}
+.endif
+
post-extract:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} extract)
Index: files/patch-uucp-common_sources-policy.h.patch
===================================================================
RCS file: files/patch-uucp-common_sources-policy.h.patch
diff -N files/patch-uucp-common_sources-policy.h.patch
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-uucp-common_sources-policy.h.patch 20 Mar 2006 16:28:32 -0000
@@ -0,0 +1,12 @@
+--- uucp/common_sources/policy.h.orig Sat Jun 14 04:03:07 2003
++++ uucp/common_sources/policy.h Mon Mar 20 14:35:51 2006
+@@ -439,7 +439,9 @@
+ the documentation for further details. If you set this, you are
+ responsible for encrypting the passwords in the UUCP password file.
+ The function crypt will be used to do comparisons. */
++#if !defined(HAVE_ENCRYPTED_PASSWORDS)
+ #define HAVE_ENCRYPTED_PASSWORDS 0
++#endif
+
+ /* Set the default grade to use for a uucp command if the -g option is
+ not used. The grades, from highest to lowest, are 0 to 9, A to Z,
Index: files/patch-uucp-uucico-Makefile
===================================================================
RCS file: files/patch-uucp-uucico-Makefile
diff -N files/patch-uucp-uucico-Makefile
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-uucp-uucico-Makefile 20 Mar 2006 16:28:32 -0000
@@ -0,0 +1,14 @@
+--- uucp/uucico/Makefile.orig Mon Jul 22 05:02:08 2002
++++ uucp/uucico/Makefile Mon Mar 20 15:57:12 2006
+@@ -18,5 +18,11 @@
+ MAN= uucico.8
+ MAN8= uucico.8
+
++.if defined(WITH_ENCRYPTED_PASSWORDS)
++CFLAGS+= -DHAVE_ENCRYPTED_PASSWORDS=1
++LDADD+= -lcrypt
++DPADD+= ${LIBCRYPT}
++.endif
++
+ .include <bsd.prog.mk>
+ .PATH: $(.CURDIR)/../common_sources
Index: files/patch-uucpd-Makefile
===================================================================
RCS file: files/patch-uucpd-Makefile
diff -N files/patch-uucpd-Makefile
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-uucpd-Makefile 20 Mar 2006 16:28:32 -0000
@@ -0,0 +1,11 @@
+--- uucpd/Makefile.orig Thu Jan 8 18:28:23 2004
++++ uucpd/Makefile Mon Mar 20 15:33:37 2006
+@@ -19,4 +19,8 @@
+ LDADD+= ${MINUSLPAM}
+ .endif
+
++.if defined(WITH_ENCRYPTED_PASSWORDS)
++CFLAGS+= -DHAVE_ENCRYPTED_PASSWORDS=1
++.endif
++
+ .include <bsd.prog.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list