Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2013 11:14:35 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r315282 - head/sysutils/fusefs-kmod
Message-ID:  <201303261114.r2QBEZak027812@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Tue Mar 26 11:14:35 2013
New Revision: 315282
URL: http://svnweb.freebsd.org/changeset/ports/315282

Log:
  - Add mirror as the main site is dead
  - Trim header
  - Convert to new options framework
  
  With hat:	portmgr

Modified:
  head/sysutils/fusefs-kmod/Makefile

Modified: head/sysutils/fusefs-kmod/Makefile
==============================================================================
--- head/sysutils/fusefs-kmod/Makefile	Tue Mar 26 11:08:14 2013	(r315281)
+++ head/sysutils/fusefs-kmod/Makefile	Tue Mar 26 11:14:35 2013	(r315282)
@@ -1,15 +1,12 @@
-# New ports collection makefile for:	fusefs-kmod
-# Date created:				08 October 2005
-# Whom:					Anish Mistry <amistry@am-productions.biz>
-#
+# Created by: Anish Mistry <amistry@am-productions.biz>
 # $FreeBSD$
-#
 
 PORTNAME=	fusefs
 DISTVERSION=	0.3.9-pre1.20080208
 PORTREVISION=	11
 CATEGORIES=	sysutils kld
-MASTER_SITES=	http://mercurial.creo.hu/repos/fuse4bsd-hg/index.cgi/archive/
+MASTER_SITES=	http://mercurial.creo.hu/repos/fuse4bsd-hg/index.cgi/archive/ \
+  		LOCAL/bdrewery/${PORTNAME}/
 PKGNAMESUFFIX=	-kmod
 DISTNAME=	${HG_SHORTREV}
 DIST_SUBDIR=	fuse4bsd
@@ -19,10 +16,6 @@ COMMENT=	Kernel module for fuse
 
 BUILD_DEPENDS=	fusefs-libs>2.4.1:${PORTSDIR}/sysutils/fusefs-libs
 
-.if !defined(NOPORTDOCS)
-BUILD_DEPENDS+=	deplate:${PORTSDIR}/textproc/ruby-deplate
-.endif
-
 USE_RC_SUBR=	fusefs
 KMODDIR?=	${PREFIX}/modules
 PLIST_SUB=	KMODDIR=${KMODDIR}
@@ -32,10 +25,15 @@ MAKE_ENV=	BINDIR="${PREFIX}/sbin" MANDIR
 WRKSRC=		${WRKDIR}/fuse4bsd-${HG_SHORTREV}
 DISABLE_SIZE=	yes
 
-OPTIONS=	AUTOSETUP "Automatic global config file setup" off
+OPTIONS_DEFINE=	AUTOSETUP DOCS
+AUTOSETUP_DESC=	Automatic global config file setup
 
 .include <bsd.port.pre.mk>
 
+.if ${PORT_OPTIONS:MDOCS}
+BUILD_DEPENDS+=	deplate:${PORTSDIR}/textproc/ruby-deplate
+.endif
+
 SRC_BASE?=	/usr/src
 SETUP=		setup.sh
 HG_SHORTREV=	498acaef33b0
@@ -77,7 +75,7 @@ IGNORE=		requires the userland sources t
 BROKEN=		Does not compile on other than i386/amd64
 .endif
 
-.if defined(WITH_AUTOSETUP)
+.if ${PORT_OPTIONS:MAUTOSETUP}
 SUB_FILES+=	${SETUP}
 .else
 SUB_FILES+=	pkg-message
@@ -93,7 +91,7 @@ post-configure:
 	@${CP} ${LOCALBASE}/include/fuse/fuse_kernel.h ${WRKSRC}/fuse_module
 
 post-build:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@cd ${WRKSRC}/doc && make plaintext html_chunked
 .endif
 
@@ -102,14 +100,14 @@ pre-su-install:
 
 post-install:
 	@${LN} -fs ${PREFIX}/sbin/mount_fusefs /usr/sbin
-.if defined(WITH_AUTOSETUP) && !defined(PACKAGE_BUILDING)
+.if ${PORT_OPTIONS:MAUTOSETUP} && !defined(PACKAGE_BUILDING)
 	@${ECHO} "Modifying global startup config files and loading module..."
 	@${SH} ${WRKDIR}/${SETUP}
 .else
 	@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
 .endif
 
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}/kmod/html
 .for i in ${TXT_DOCS}
 	@${INSTALL_DATA} ${WRKSRC}/doc/plaintext_out/$i ${DOCSDIR}/kmod



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303261114.r2QBEZak027812>