pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/news/trn Convert to options framework.
details: https://anonhg.NetBSD.org/pkgsrc/rev/22fe953b16b0
branches: trunk
changeset: 503904:22fe953b16b0
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Dec 01 19:29:26 2005 +0000
description:
Convert to options framework.
diffstat:
news/trn/Makefile | 10 ++--------
news/trn/options.mk | 16 ++++++++++++++++
2 files changed, 18 insertions(+), 8 deletions(-)
diffs (44 lines):
diff -r 606587a88c5c -r 22fe953b16b0 news/trn/Makefile
--- a/news/trn/Makefile Thu Dec 01 19:20:14 2005 +0000
+++ b/news/trn/Makefile Thu Dec 01 19:29:26 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2005/09/28 20:52:25 rillig Exp $
+# $NetBSD: Makefile,v 1.24 2005/12/01 19:29:26 wiz Exp $
DISTNAME= trn-4.0-test76
PKGNAME= trn-4.76
@@ -15,13 +15,7 @@
PKG_SYSCONFSUBDIR= nntp
-.include "../../mk/bsd.prefs.mk"
-
-.if defined(USE_INN) && ${USE_INN} == YES
-DEPENDS= inn>=2.2:../../news/inn
-.else
-DEPENDS= nntpclnt>=1.6.1:../../news/nntpclnt
-.endif
+.include "options.mk"
# TRN_HOSTBITS determines the number of "name segments" (x.y.z.com), counting
# from right to left, that TRN will match to allow cancels, with 0 requiring
diff -r 606587a88c5c -r 22fe953b16b0 news/trn/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/news/trn/options.mk Thu Dec 01 19:29:26 2005 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2005/12/01 19:29:26 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.trn
+PKG_OPTIONS_REQUIRED_GROUPS= nntpclient
+PKG_OPTIONS_GROUP.nntpclient= trn-inn trn-nntpclnt
+PKG_SUGGESTED_OPTIONS+= trn-nntpclnt
+# remove after 2005Q4
+PKG_OPTIONS_LEGACY_VARS+= USE_INN:trn-inn
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minn)
+DEPENDS= inn>=2.2:../../news/inn
+.else
+DEPENDS= nntpclnt>=1.6.1:../../news/nntpclnt
+.endif
Home |
Main Index |
Thread Index |
Old Index