ports/51873: [PATCH] Convert net/wol to USE_GETOPT_LONG

Sergei Kolobov sergei at kolobov.com
Tue May 6 14:50:07 UTC 2003


>Number:         51873
>Category:       ports
>Synopsis:       [PATCH] Convert net/wol to USE_GETOPT_LONG
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 06 07:50:04 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Sergei Kolobov
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD outpost.globcon.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Thu Jan  2 03:13:48 MSK
>Description:
- Properly conditionalize gnugetopt dependency by utilizing USE_GETOPT_LONG
- Add missing iconv dependency
- Clarify COMMENT and pkg-descr
- Silence configure warning by using CONFIGURE_TARGET
- Install additional documentation
- Bump PORTREVISION
- Take maintainership

Tested on:	-STABLE, -CURRENT (i386)
>How-To-Repeat:
>Fix:
--- wol-0.6.0_2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/wol/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile	2003/02/20 18:51:13	1.12
+++ Makefile	2003/05/06 14:35:14
@@ -8,19 +8,30 @@
 
 PORTNAME=	wol
 PORTVERSION=	0.6.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	ahh
 
-MAINTAINER=	ports at FreeBSD.org
-COMMENT=	Wake On LAN client
+MAINTAINER=	sergei at kolobov.com
+COMMENT=	Tool to wake up Wake-On-LAN compliant computers
 
 LIB_DEPENDS=	intl.4:${PORTSDIR}/devel/gettext \
-		gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+		iconv.3:${PORTSDIR}/converters/libiconv
 
-GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
-		LDFLAGS="-L${LOCALBASE}/lib -liconv -lgnugetopt"
+GNU_CONFIGURE=		yes
+USE_GETOPT_LONG=	yes
+CPPFLAGS=		-I${LOCALBASE}/include
+LDFLAGS=		-L${LOCALBASE}/lib
+CONFIGURE_ENV=		CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+
+DOCS=		AUTHORS NEWS README TODO
+
+.if !defined(NOPORTDOCS)
+post-install:
+	@${MKDIR} ${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+.endif
 
 .include <bsd.port.mk>
Index: pkg-descr
===================================================================
RCS file: /home/ncvs/ports/net/wol/pkg-descr,v
retrieving revision 1.1
diff -u -r1.1 pkg-descr
--- pkg-descr	2002/01/10 11:31:06	1.1
+++ pkg-descr	2003/05/06 14:35:14
@@ -1,14 +1,22 @@
-wol implements Wake On LAN functionality in a small program. It wakes up
-hardware that is Magic Packet compliant.
+wol implements Wake-On-LAN functionality in a small program. 
+It wakes up hardware that is Magic Packet compliant.
 
+Consider you have a sleeping or turned-off computer 
+and you want to wake it up remotely. Just type:
+
+  # wol <MAC-ADDRESS>
+  
+and the host wakes up (OK, it will boot ;-). 
+
 Features:
-    Wakes up various NIC's (tested)
-        3COM 3C905c
-        Intel EtherExpress Pro 100
-        Linksys Etherfast LNE100TX
-        Realtek LFE8139
-        LevelOne FNC-0107TX
-    Wake up from file (same as /etc/ethers and an enhanced format)
-    Sleeping between two wake ups (measured in milliseconds)
+- Wakes up various NIC's (tested)
+  - 3COM 3C905c
+  - Intel EtherExpress Pro 100
+  - Linksys Etherfast LNE100TX
+  - Realtek LFE8139
+  - LevelOne FNC-0107TX
+- Wake up from file (same as /etc/ethers and an enhanced format)
+- Sleeping between two wake ups (measured in milliseconds)
 
-WWW: http://ahh.sourceforge.net/wol/
+Author:	Thomas Krennwallner <krennwallner at aon.at>
+WWW:	http://ahh.sourceforge.net/wol/
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/net/wol/pkg-plist,v
retrieving revision 1.2
diff -u -r1.2 pkg-plist
--- pkg-plist	2002/03/26 06:34:52	1.2
+++ pkg-plist	2003/05/06 14:35:14
@@ -3,6 +3,11 @@
 @unexec install-info --delete %D/info/wol.info %D/info/dir
 info/wol.info
 @exec install-info %D/info/wol.info %D/info/dir
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
 share/locale/de/LC_MESSAGES/wol.mo
 share/locale/fr/LC_MESSAGES/wol.mo
 share/locale/it/LC_MESSAGES/wol.mo
--- wol-0.6.0_2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list