aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/openvmps/Makefile
blob: 900586dba8025628cf5d4cb394d10ffe9f1f848f (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
# New ports collection makefile for:   openvmps
# Date created:        6 October 2003
# Whom:                Craig Boston <craig@yekse.gank.org>
#
# $FreeBSD$
#

PORTNAME=   openvmps
PORTVERSION=    1.3
CATEGORIES= net-mgmt
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= vmps
DISTNAME=   vmpsd-${PORTVERSION}

MAINTAINER= craig@yekse.gank.org
COMMENT=    A GPL implementation of the VMPS protocol

WRKSRC=     ${WRKDIR}/vmpsd
USE_RC_SUBR=    yes

GNU_CONFIGURE=  yes
USE_GMAKE=  yes

CONFIGURE_ARGS=--bindir=${PREFIX}/sbin

MAN1=       vmpsd.1

RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
        RC_SUBR=${RC_SUBR}

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
IGNORE=     does not run correctly on amd64 architecture, see ports/136376
.endif

post-install:
    @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
        ${FILESDIR}/vmpsd.sh > ${PREFIX}/etc/rc.d/vmpsd.sh
    @${CHMOD} 755 ${PREFIX}/etc/rc.d/vmpsd.sh
    ${INSTALL_DATA} -m 644 ${WRKSRC}/vlan.db \
        ${PREFIX}/etc/vmps.db.sample
    @if [ ! -f ${PREFIX}/etc/vmps.db ]; then \
        ${CP} -p ${PREFIX}/etc/vmps.db.sample ${PREFIX}/etc/vmps.db ; \
    fi

.include <bsd.port.post.mk>