1 # $NetBSD: Makefile,v 1.26 2012/10/03 21:57:34 wiz Exp $
7 MASTER_SITES
= http
://www.sparc.spb.su
/solaris
/skey
/
10 MAINTAINER
= pkgsrc-users@NetBSD.org
11 HOMEPAGE
= ${MASTER_SITES}
12 COMMENT
= Port of OpenBSD s
/key implementation
14 USE_TOOLS
+= gmake perl
:run
16 CONFIGURE_ARGS
+= --sysconfdir
=${PKG_SYSCONFDIR
:Q
}
17 CONF_FILES
+= ${PREFIX}/share
/examples
/skey
/skeykeys \
18 ${PKG_SYSCONFDIR}/skeykeys
20 REPLACE_PERL
= skeyprune.pl
22 INSTALLATION_DIRS
= bin
include lib
${PKGMANDIR}/man1
${PKGMANDIR}/man8
24 .
include "../../mk/bsd.prefs.mk"
27 .if
${OPSYS} == "SunOS"
28 CONFIGURE_ENV
+= ac_cv_header_md4_h
=no
29 CONFIGURE_ENV
+= ac_cv_header_sha1_h
=no
30 BUILDLINK_TRANSFORM
+= l
:crypt
:md5
:crypt
33 .if
${OPSYS} == "DragonFly"
34 CONFIGURE_ENV
+= ac_cv_header_rmd160_h
=no
36 .if
${OPSYS} == "DragonFly" ||
${OPSYS} == "FreeBSD"
37 BUILDLINK_TRANSFORM
+= l
:crypt
:md
:crypt
39 # setusercontext() is in -lutil
40 LIBS.DragonFly
+= -lutil
45 ${RANLIB} ${DESTDIR}${PREFIX}/lib
/libskey.a
47 .
include "../../mk/bsd.pkg.mk"