Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Aug 2013 09:45:10 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r324384 - in head/sysutils/ipad_charge: . files
Message-ID:  <201308080945.r789jACJ091428@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Thu Aug  8 09:45:09 2013
New Revision: 324384
URL: http://svnweb.freebsd.org/changeset/ports/324384

Log:
  Cosmetic changes:
  - kill older versions of FreeBSD support
  - use SUB_FILES
  - pad pkg-message display with @${ECHO_CMD}
  
  Pointed out by:	danfe

Added:
  head/sysutils/ipad_charge/files/pkg-message.in   (contents, props changed)
Deleted:
  head/sysutils/ipad_charge/pkg-message
Modified:
  head/sysutils/ipad_charge/Makefile

Modified: head/sysutils/ipad_charge/Makefile
==============================================================================
--- head/sysutils/ipad_charge/Makefile	Thu Aug  8 09:27:45 2013	(r324383)
+++ head/sysutils/ipad_charge/Makefile	Thu Aug  8 09:45:09 2013	(r324384)
@@ -10,22 +10,18 @@ COMMENT=	Generic iPad USB charging utili
 
 LICENSE=	BSD
 
+PLIST_FILES=	etc/devd/ipad_charge.conf
 USE_RC_SUBR=	ipad_charge
+SUB_FILES=	ipad_charge.conf pkg-message
 NO_BUILD=	yes
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 800000
-IGNORE=		requires FreeBSD 8.0-RELEASE or later
-.endif
-
 do-install:
+	@${MKDIR} ${PREFIX}/etc/devd
+	@${INSTALL_DATA} ${WRKDIR}/ipad_charge.conf ${PREFIX}/etc/devd
 
 post-install:
-	@${MKDIR} ${PREFIX}/etc/devd
-	@${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \
-		< ${FILESDIR}/ipad_charge.conf.in > ${WRKDIR}/ipad_charge.conf
-	${INSTALL_DATA} "${WRKDIR}/ipad_charge.conf" ${PREFIX}/etc/devd
+	@${ECHO_MSG}
 	@${CAT} ${PKGMESSAGE}
+	@${ECHO_MSG}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Added: head/sysutils/ipad_charge/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/ipad_charge/files/pkg-message.in	Thu Aug  8 09:45:09 2013	(r324384)
@@ -0,0 +1,11 @@
+*********************************************************************
+1) add ipad_charge_enable="YES" and optionally
+   ipad_charge_action="ON" (default) or "OFF" .
+
+to your /etc/rc.conf
+
+2) Please restart devd as the configuration changed
+
+	# service devd restart
+
+*********************************************************************



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