ports/136411: [new port] www/wgetpaste: Paste to several pastebin services via bash script

anonymous
Tue Jul 7 09:20:04 UTC 2009


>Number:         136411
>Category:       ports
>Synopsis:       [new port] www/wgetpaste: Paste to several pastebin services via bash script
>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 Jul 07 09:20:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     anonymous
>Release:        FreeBSD 8.0-CURRENT amd64
>Organization:
>Environment:
>Description:
A Script that automates pasting to a number of pastebin services
relying only on bash, sed, coreutils (mktemp/sort/tr/wc/whoami/tee)
and wget

WWW: http://wgetpaste.zlin.dk/

>How-To-Repeat:
$ cd /usr/ports
$ patch -s -p0 -i /path/to/wgetpaste.diff
$ cd www/wgetpaste
$ make install clean

>Fix:
--- wgetpaste.diff begins here ---
Index: www/Makefile
===================================================================
RCS file: /home/csup/ports/www/Makefile,v
retrieving revision 1.2388
diff -u -p -r1.2388 Makefile
--- www/Makefile	30 Jun 2009 19:46:47 -0000	1.2388
+++ www/Makefile	2 Jul 2009 09:42:17 -0000
@@ -1606,6 +1606,7 @@
     SUBDIR += webstone
     SUBDIR += webstone-ssl
     SUBDIR += wget4web
+    SUBDIR += wgetpaste
     SUBDIR += wikicalc
     SUBDIR += wikindx
     SUBDIR += wiliki
Index: www/wgetpaste/Makefile
===================================================================
RCS file: www/wgetpaste/Makefile
diff -N www/wgetpaste/Makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ www/wgetpaste/Makefile	2 Jul 2009 11:03:09 -0000
@@ -0,0 +1,42 @@
+# New ports collection makefile for:	wgetpaste
+# Date created:				2 Jul 2009
+# Whom:					Anonymous
+#
+# $FreeBSD$
+#
+
+PORTNAME=	wgetpaste
+PORTVERSION=	2.13
+CATEGORIES=	www
+MASTER_SITES=	http://wgetpaste.zlin.dk/
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}.example zlin.conf
+
+MAINTAINER=	ports at FreeBSD.org
+COMMENT=	Paste to several pastebin services via bash script
+
+RUN_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
+		${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget
+
+EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
+USE_BZIP2=	yes
+NO_BUILD=	yes
+
+post-patch:	.SILENT
+	${REINPLACE_CMD} \
+		-e 's|/etc/|${PREFIX}/etc/|g' \
+		-e 's|\(INFO_COMMAND=\).*|\1"pkg_info -aE"|' \
+		-e 's|\(INFO_ARGS=\).*|\1|' \
+		${WRKSRC}/${PORTNAME}
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	${MKDIR} -p ${PREFIX}/share/zsh/site-functions
+	${INSTALL_DATA} ${WRKSRC}/_${PORTNAME} \
+		${PREFIX}/share/zsh/site-functions
+	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}.example \
+		${PREFIX}/etc/${PORTNAME}.conf.sample
+	${MKDIR} ${PREFIX}/etc/${PORTNAME}.d
+	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/zlin.conf \
+		${PREFIX}/etc/${PORTNAME}.d
+
+.include <bsd.port.mk>
Index: www/wgetpaste/distinfo
===================================================================
RCS file: www/wgetpaste/distinfo
diff -N www/wgetpaste/distinfo
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ www/wgetpaste/distinfo	2 Jul 2009 09:30:28 -0000
@@ -0,0 +1,9 @@
+MD5 (wgetpaste-2.13.tar.bz2) = a341c778d745b0a7ad11163a4a2c1ea9
+SHA256 (wgetpaste-2.13.tar.bz2) = c33d97d5f2e3def50f0a316cf4f425037dc69b53016f8fecb6398503258b4854
+SIZE (wgetpaste-2.13.tar.bz2) = 8587
+MD5 (wgetpaste.example) = 77392c788659cc648a59df2d239ebe19
+SHA256 (wgetpaste.example) = cbc0437f7e04d95ffd224011ee2a056a84dfd7143e314e6962688295f68def4d
+SIZE (wgetpaste.example) = 380
+MD5 (zlin.conf) = 68046e6f334258a104c439affa6bb6f7
+SHA256 (zlin.conf) = 8fe8338ebd6716bac1e7e818b26163f899d7609fbac5932aaa1dabe45d6fdb19
+SIZE (zlin.conf) = 971
Index: www/wgetpaste/pkg-descr
===================================================================
RCS file: www/wgetpaste/pkg-descr
diff -N www/wgetpaste/pkg-descr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ www/wgetpaste/pkg-descr	2 Jul 2009 09:13:58 -0000
@@ -0,0 +1,5 @@
+A Script that automates pasting to a number of pastebin services
+relying only on bash, sed, coreutils (mktemp/sort/tr/wc/whoami/tee)
+and wget
+
+WWW: http://wgetpaste.zlin.dk/
Index: www/wgetpaste/pkg-plist
===================================================================
RCS file: www/wgetpaste/pkg-plist
diff -N www/wgetpaste/pkg-plist
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ www/wgetpaste/pkg-plist	2 Jul 2009 09:57:44 -0000
@@ -0,0 +1,7 @@
+bin/wgetpaste
+etc/wgetpaste.conf.sample
+etc/wgetpaste.d/zlin.conf
+share/zsh/site-functions/_wgetpaste
+ at dirrmtry etc/wgetpaste.d
+ at dirrmtry share/zsh/site-functions
+ at dirrmtry share/zsh
--- wgetpaste.diff ends here ---


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



More information about the freebsd-ports-bugs mailing list