blob: d6763055c6289a10db224ba137f884e6ff23965e (
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
|
# Created by: Marcin Simonides <marcin@studio4plus.com>
# $FreeBSD$
PORTNAME= zfs-snapshot-mgmt
PORTVERSION= 20090201
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://marcin.studio4plus.com/files/
MAINTAINER= marius@nuenneri.ch
COMMENT= Automatic ZFS snapshot management tool
USE_RUBY= yes
RUBY_NO_BUILD_DEPENDS= yes
RUBY_SHEBANG_FILES= zfs-snapshot-mgmt
NO_BUILD= yes
MAN8= zfs-snapshot-mgmt.8
SUB_FILES= pkg-message
post-patch: .SILENT
${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} \
-e 's|/usr/local|${PREFIX}|g' {} +
NO_STAGE= yes
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MANPREFIX}/man/man8
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${PREFIX}/etc
post-install:
@if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \
${CP} -p ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf ; \
fi
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|