mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
d35e2af1da
- Support STAGEDIR Changes: http://people.FreeBSD.org/~sunpoet/wgetpaste-2.23.diff - Change default language to "Auto" - Add an additional http header can be passed by setting HEADER_${SERVICE}
36 lines
1.1 KiB
Makefile
36 lines
1.1 KiB
Makefile
# Created by: Anonymous
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= wgetpaste
|
|
PORTVERSION= 2.23
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://wgetpaste.zlin.dk/ \
|
|
LOCAL/sunpoet
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}.example zlin.conf
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= sunpoet@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
|
|
|
|
NO_BUILD= yes
|
|
USE_BZIP2= yes
|
|
|
|
post-patch:
|
|
@${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:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.d/ ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
${INSTALL_DATA} ${DISTDIR}/${PORTNAME}.example ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
|
|
${INSTALL_DATA} ${DISTDIR}/zlin.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.d/
|
|
${INSTALL_DATA} ${WRKSRC}/_${PORTNAME} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
|
|
|
|
.include <bsd.port.mk>
|