aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/iocage-devel/Makefile
blob: 48acac16c9fd4bc33042d276645c2ff73f46c8c6 (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
# Created by: Johannes Meixner <xmj@chaot.net>
# $FreeBSD$

PORTNAME=   iocage
PORTVERSION=    20160122
CATEGORIES= sysutils
PKGNAMESUFFIX=  -devel

MAINTAINER= kmoore@FreeBSD.org
COMMENT=    Full featured, no dependency Jail container manager - devel build

LICENSE=    BSD2CLAUSE
LICENSE_FILE=   ${WRKSRC}/LICENSE

USE_GITHUB= yes
GH_ACCOUNT= iocage
GH_TAGNAME= fbef24abf24ef7d7499bd928709ea0c8e4b4048f

NO_BUILD=   yes
NO_ARCH=    yes

post-patch:
    @${REINPLACE_CMD} -e "s|/usr/local/lib/iocage|${PREFIX}/lib/iocage|g" ${WRKSRC}/iocage

pre-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/iocage

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/iocage ${STAGEDIR}${PREFIX}/etc/rc.d
    ${INSTALL_SCRIPT} ${WRKSRC}/iocage ${STAGEDIR}${PREFIX}/sbin
    (cd ${WRKSRC}/lib/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/iocage)
    ${INSTALL_MAN} ${WRKSRC}/iocage.8 ${STAGEDIR}${PREFIX}/man/man8

.include <bsd.port.mk>