blob: b2255e22ff1c8fed1ba075e51c23d8720b202edd (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
PORTNAME= cbsd
DISTVERSION= 13.1.14
CATEGORIES= sysutils
MAINTAINER= olevole@olevole.ru
COMMENT= Yet another FreeBSD Jail, XEN and Bhyve Management Utility
WWW= https://www.bsdstore.ru
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libsqlite3.so:databases/sqlite3 \
libssh2.so:security/libssh2
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss \
rsync:net/rsync \
sqlite3:databases/sqlite3 \
sudo:security/sudo
USES= compiler:c++11-lang libedit pkgconfig:both
USE_GITHUB= yes
USE_RC_SUBR= cbsdd cbsdrsyncd cbsd-statsd-bhyve cbsd-statsd-hoster \
cbsd-statsd-jail
MAKE_JOBS_UNSAFE= yes
SUB_FILES= pkg-message
USERS= ${PORTNAME}
GROUPS= ${PORTNAME}
OPTIONS_DEFINE= BHYVE_GOP
OPTIONS_DEFAULT=
BHYVE_GOP_DESC= Include bhyve UEFI firmware with GPU PPT+GOP support
CBSD_HOME?= ${PREFIX}/cbsd
.include <bsd.port.options.mk>
.if ${ARCH} == amd64 || ${ARCH} == i386 || ${ARCH} == x86_64
PLIST_SUB= X86=""
.else
PLIST_SUB= X86="@comment "
.endif
.if ${OPSYS} != FreeBSD
PLIST_SUB+= FBSD="@comment "
LIB_DEPENDS+= libelf.so:devel/libelf
RUN_DEPENDS+= sysrc:sysutils/sysrc
.else
PLIST_SUB+= FBSD=""
.endif
.if !${PORT_OPTIONS:MBHYVE_GOP}
PLIST_SUB+= BHYVE_GOP="@comment "
.else
PLIST_SUB+= BHYVE_GOP=""
.endif
do-install:
@${ECHO} "Installing in ${CBSD_HOME}"
${MKDIR} ${STAGEDIR}${CBSD_HOME}
${CP} -a ${WRKSRC}/ ${STAGEDIR}${CBSD_HOME}
${INSTALL_PROGRAM} -s ${WRKSRC}/bin/cbsdsh/cbsd ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} -s ${WRKSRC}/misc/src/sipcalc/sipcalc \
${STAGEDIR}${PREFIX}/cbsd/misc/sipcalc
${RM} -rf ${STAGEDIR}${PREFIX}/cbsd/bin/cbsdsh \
${STAGEDIR}${PREFIX}/cbsd/bin/src \
${STAGEDIR}${PREFIX}/cbsd/lib \
${STAGEDIR}${PREFIX}/cbsd/misc/src \
${STAGEDIR}${PREFIX}/cbsd/sbin/src \
${STAGEDIR}${PREFIX}/cbsd/tools/src
${INSTALL_MAN} ${WRKSRC}/man/cbsd.8 ${STAGEDIR}${PREFIX}/man/man8/cbsd.8
.if !${PORT_OPTIONS:MBHYVE_GOP}
${RM} -f ${STAGEDIR}${PREFIX}/cbsd/upgrade/patch/efigop.fd
.endif
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/bsdconfig
@${LN} -sf ${CBSD_HOME}/share/bsdconfig/cbsd ${STAGEDIR}${PREFIX}/libexec/bsdconfig/cbsd
.include <bsd.port.mk>
|