From 3b13b87e747b207047ea910f400911d25431ae94 Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 17 Apr 2004 04:32:16 +0000 Subject: Make su2 build and run in Linux. --- sysutils/su2/Makefile | 22 +++++++++++++++++++++- sysutils/su2/distinfo | 4 ++-- sysutils/su2/patches/patch-aa | 9 ++++----- 3 files changed, 27 insertions(+), 8 deletions(-) (limited to 'sysutils') diff --git a/sysutils/su2/Makefile b/sysutils/su2/Makefile index ddb111e71bb..a16f61fd56e 100644 --- a/sysutils/su2/Makefile +++ b/sysutils/su2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2003/12/24 09:53:50 jmmv Exp $ +# $NetBSD: Makefile,v 1.7 2004/04/17 04:32:16 ben Exp $ # DISTNAME= su2-1.3 @@ -12,4 +12,24 @@ COMMENT= Enhanced su, users su with own password + more LICENSE= no-profit NO_CONFIGURE= yes +SUBST_CLASSES+= preproc +SUBST_MESSAGE.preproc= "Correcting C preprocessor directives." +SUBST_STAGE.preproc= post-patch +SUBST_FILES.preproc= su2.c +SUBST_SED.preproc= -e 's,^\(\# *else\).*,\1,' \ + -e 's,^\(\# *endif\).*,\1,' + +LDLIBS= -lcrypt + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "NetBSD" +LDLIBS+= -lcompat +.endif + +MAKE_ENV+= LDLIBS="${LDLIBS}" + +post-extract: + ${CHMOD} -R og+w ${WRKSRC} + .include "../../mk/bsd.pkg.mk" diff --git a/sysutils/su2/distinfo b/sysutils/su2/distinfo index e419e9de9f9..1a242be02ab 100644 --- a/sysutils/su2/distinfo +++ b/sysutils/su2/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.1.1.1 2002/06/04 09:56:38 cjep Exp $ +$NetBSD: distinfo,v 1.2 2004/04/17 04:32:16 ben Exp $ SHA1 (su2-1.3.tar.gz) = 0b84a070c0cc95098c0d61566663c89ec2d1189e Size (su2-1.3.tar.gz) = 31067 bytes -SHA1 (patch-aa) = 8e08931b017b367b2127fdc5dac0c7beefa717dd +SHA1 (patch-aa) = 2d696c6b556e2e79b2073fa87eedc2c1f26770b4 SHA1 (patch-ab) = 12aa6e167ae0623c549da5a4deb43a9fb5e109a3 SHA1 (patch-ac) = 5f0799f9ed62b656fad7bbde776393700e2407c6 diff --git a/sysutils/su2/patches/patch-aa b/sysutils/su2/patches/patch-aa index 2877c1df301..5a6d4083d02 100644 --- a/sysutils/su2/patches/patch-aa +++ b/sysutils/su2/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.1.1.1 2002/06/04 09:56:38 cjep Exp $ +$NetBSD: patch-aa,v 1.2 2004/04/17 04:32:16 ben Exp $ ---- Makefile.orig Thu Sep 7 13:50:58 1995 +--- Makefile.orig 2004-04-16 20:59:06.000000000 -0700 +++ Makefile -@@ -8,16 +8,16 @@ +@@ -8,16 +8,16 @@ CC=gcc # /etc/super-users and /usr/adm/sulog that are defined # separately. # @@ -22,13 +22,12 @@ $NetBSD: patch-aa,v 1.1.1.1 2002/06/04 09:56:38 cjep Exp $ # m88k # OPTIONS=-DFULLPATH -DNOVFORK -@@ -31,13 +31,19 @@ +@@ -31,13 +31,18 @@ OPTIONS=-DFULLPATH # Shadow Passwords (Solaris) # OPTIONS=-DFULLPATH -DUSE_SHADOW -CFLAGS=-O $(OPTIONS) +CFLAGS+= $(OPTIONS) -+LDLIBS=-lcrypt -lcompat su2: su2.c -- cgit v1.2.3