aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/pdumpfs/Makefile
blob: b81763f18652cdab01257a60b4692a7513461d03 (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
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$

PORTNAME=   pdumpfs
PORTVERSION=    1.3
PORTREVISION=   5
CATEGORIES= sysutils
MASTER_SITES=   http://0xcc.net/pdumpfs/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Daily backup system similar to Plan9's dumpfs

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

USE_RUBY=   yes
USES=       shebangfix
NO_ARCH=    yes

SHEBANG_FILES=  ${WRKSRC}/pdumpfs.in
ALL_TARGET= pdumpfs

PLIST_FILES=    man/ja/man8/pdumpfs.8.gz \
        man/man8/pdumpfs.8.gz \
        sbin/pdumpfs
PORTDOCS=   *

OPTIONS_DEFINE= DOCS

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/pdumpfs ${STAGEDIR}${PREFIX}/sbin
    ${INSTALL_MAN} ${WRKSRC}/man/man8/pdumpfs.8 ${STAGEDIR}${MANPREFIX}/man/man8
    ${RUBY} -ni -r nkf -e 'puts NKF.nkf("-e",$$_)' ${WRKSRC}/man/ja/man8/pdumpfs.8
    ${INSTALL_MAN} ${WRKSRC}/man/ja/man8/pdumpfs.8 ${STAGEDIR}${MANPREFIX}/man/ja/man8

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>