View | Details | Raw Unified | Return to bug 209050
Collapse All | Expand All

(-)sysutils/feather/Makefile (-20 / +24 lines)
Lines 2-11 Link Here
2
# $FreeBSD: head/sysutils/feather/Makefile 413767 2016-04-22 09:02:53Z amdmi3 $
2
# $FreeBSD: head/sysutils/feather/Makefile 413767 2016-04-22 09:02:53Z amdmi3 $
3
3
4
PORTNAME=	feather
4
PORTNAME=	feather
5
PORTVERSION=	1.0
5
PORTVERSION=	1.2.0
6
DISTVERSIONPREFIX=	v
6
CATEGORIES=	sysutils python
7
CATEGORIES=	sysutils python
7
MASTER_SITES=	http://www.sourcehosting.net/freebsd/distfiles/ \
8
		LOCAL/glarkin
9
8
10
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Python script for managing tarsnap backups
10
COMMENT=	Python script for managing tarsnap backups
Lines 13-43 Link Here
13
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml \
12
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml \
14
		tarsnap>=0:sysutils/tarsnap
13
		tarsnap>=0:sysutils/tarsnap
15
14
16
USES=		python
17
NO_BUILD=	yes
18
NO_ARCH=	yes
15
NO_ARCH=	yes
16
NO_BUILD=	yes
17
18
USE_GITHUB=	yes
19
GH_ACCOUNT=	danrue
20
21
USES=		python:2,run
19
22
20
SUB_FILES=	pkg-message
23
SUB_FILES=	pkg-message
21
24
22
OPTIONS_DEFINE=	DOCS
25
PORTDOCS=	README.md
26
PORTEXAMPLES=	feather.cron.d.example
27
PLIST_FILES=	bin/feather etc/feather.yaml.dist
28
29
OPTIONS_DEFINE=	DOCS EXAMPLES
23
30
24
do-install:
31
do-install:
25
	${INSTALL_SCRIPT} ${WRKSRC}/feather ${STAGEDIR}${PREFIX}/bin
32
	(cd ${WRKSRC} && ${INSTALL_SCRIPT} feather \
26
	${INSTALL_DATA} ${WRKSRC}/feather.yaml.dist ${STAGEDIR}${PREFIX}/etc
33
		${STAGEDIR}${PREFIX}/bin)
34
	(cd ${WRKSRC} && ${INSTALL_DATA} feather.yaml.dist \
35
		${STAGEDIR}${PREFIX}/etc)
27
36
28
do-install-DOCS-on:
37
post-install-DOCS-on:
29
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
38
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
30
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
39
	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} \
40
		${STAGEDIR}${DOCSDIR})
31
41
32
x-generate-tarball:
42
post-install-EXAMPLES-on:
33
	${SETENV} ${FETCH_ENV} ${FETCH_BINARY} -m -o ${PORTNAME}.tar.gz \
43
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
34
		https://github.com/danrue/${PORTNAME}/tarball/master
44
	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} \
35
	target=`${TAR} -tvf ${PORTNAME}.tar.gz | head -n 1`; \
45
		${STAGEDIR}${EXAMPLESDIR})
36
	dir=`${ECHO} $${target} | ${AWK} '{print $$9}' | ${SED} -e 's|/$$||'`; \
37
	${TAR} -zxf ${PORTNAME}.tar.gz; \
38
	${RM} ${PORTNAME}.tar.gz; \
39
	${MV} $${dir} ${PORTNAME}-${PORTVERSION}; \
40
	${TAR} -zcf ${PORTNAME}-${PORTVERSION}.tar.gz ${PORTNAME}-${PORTVERSION}; \
41
	${RM} -r ${PORTNAME}-${PORTVERSION}
42
46
43
.include <bsd.port.mk>
47
.include <bsd.port.mk>
(-)sysutils/feather/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (feather-1.0.tar.gz) = a787bb73baa4377a375412c1882fd6f04c3f88a23b474fef4988b53dedef24a2
1
SHA256 (danrue-feather-v1.2.0_GH0.tar.gz) = 9de98d3b88e50091c8ca64ad0142f2a18a73bfe12fa12195f8a5f0412ce17fb7
2
SIZE (feather-1.0.tar.gz) = 4992
2
SIZE (danrue-feather-v1.2.0_GH0.tar.gz) = 5480
(-)sysutils/feather/pkg-plist (-3 lines)
Lines 1-3 Link Here
1
bin/feather
2
etc/feather.yaml.dist
3
%%PORTDOCS%%%%DOCSDIR%%/README

Return to bug 209050