blob: a68708084f5ccbeed49b33f0c0a3a33bcbfae39a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# New ports collection makefile for: wgetpaste
# Date created: 2 Jul 2009
# Whom: Anonymous
#
# $FreeBSD$
#
PORTNAME= wgetpaste
PORTVERSION= 2.14
CATEGORIES= www
MASTER_SITES= http://wgetpaste.zlin.dk/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}.example zlin.conf
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= pgollucci@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
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} ${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>
|