pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/tkpasman Convert to options framework.
details: https://anonhg.NetBSD.org/pkgsrc/rev/da103b34979a
branches: trunk
changeset: 497627:da103b34979a
user: wiz <wiz%pkgsrc.org@localhost>
date: Mon Aug 01 11:45:19 2005 +0000
description:
Convert to options framework.
diffstat:
security/tkpasman/Makefile | 15 ++-------------
security/tkpasman/options.mk | 18 ++++++++++++++++++
2 files changed, 20 insertions(+), 13 deletions(-)
diffs (58 lines):
diff -r 698c42591832 -r da103b34979a security/tkpasman/Makefile
--- a/security/tkpasman/Makefile Mon Aug 01 11:40:56 2005 +0000
+++ b/security/tkpasman/Makefile Mon Aug 01 11:45:19 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2005/06/17 03:50:33 jlam Exp $
+# $NetBSD: Makefile,v 1.15 2005/08/01 11:45:19 wiz Exp $
#
DISTNAME= TkPasMan-2.2a
@@ -11,7 +11,6 @@
HOMEPAGE= http://www.xs4all.nl/~wbsoft/linux/tkpasman.html
COMMENT= Username and password manager that uses the Tk toolkit
-
CONFIG_SUBST= PREFIX="${PREFIX}"
CONFIG_SUBST+= SHELL="${SH}"
CONFIG_SUBST+= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
@@ -19,17 +18,7 @@
CONFIG_SUBST+= WISH="${BUILDLINK_PREFIX.tk}/bin/wish"
CONFIG_SUBST_SED= ${CONFIG_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
-.include "../../mk/bsd.prefs.mk"
-
-# SSL support
-.if defined(TKPASMAN_USE_SSL) && ${TKPASMAN_USE_SSL} == "YES"
-. include "../../security/openssl/buildlink3.mk"
-CONFIG_SUBST+= USE_OPENSSL="true"
-CONFIG_SUBST+= OPENSSL="${BUILDLINK_PREFIX.openssl}/bin/openssl"
-.else
-CONFIG_SUBST+= USE_OPENSSL="false"
-CONFIG_SUBST+= OPENSSL=""
-.endif
+.include "options.mk"
BUILD_TARGET= tkpasman
INSTALLATION_DIRS= bin
diff -r 698c42591832 -r da103b34979a security/tkpasman/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/tkpasman/options.mk Mon Aug 01 11:45:19 2005 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: options.mk,v 1.1 2005/08/01 11:45:19 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.tkpasman
+PKG_SUPPORTED_OPTIONS= ssl
+# remove after pkgsrc-2005Q3
+PKG_OPTIONS_LEGACY_VARS+= TKPASMAN_USE_SSL:ssl
+
+.include "../../mk/bsd.options.mk"
+
+# SSL support
+.if !empty(PKG_OPTIONS:Mssl)
+. include "../../security/openssl/buildlink3.mk"
+CONFIG_SUBST+= USE_OPENSSL="true"
+CONFIG_SUBST+= OPENSSL="${BUILDLINK_PREFIX.openssl}/bin/openssl"
+.else
+CONFIG_SUBST+= USE_OPENSSL="false"
+CONFIG_SUBST+= OPENSSL=""
+.endif
Home |
Main Index |
Thread Index |
Old Index