aboutsummaryrefslogtreecommitdiffstats
path: root/net/pimd/Makefile
blob: 209ce2d924bbc26130d8a4836e57a5e47323b909 (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
# $FreeBSD$

PORTNAME=   pimd
PORTVERSION=    2.2.0
CATEGORIES= net

MAINTAINER= olivier@cochard.me
COMMENT=    Lightweight stand-alone PIM-SM v2 multicast routing daemon

LICENSE=    BSD3CLAUSE

USE_GITHUB= yes
GH_ACCOUNT= troglobit
GH_COMMIT=  d8bd641

USES=       tar:bzip2
HAS_CONFIGURE=  yes

post-patch:
    ${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/pathnames.h

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/pimd ${STAGEDIR}${PREFIX}/sbin/
    ${INSTALL_DATA} ${WRKSRC}/pimd.conf \
        ${STAGEDIR}${PREFIX}/etc/pimd.conf.sample
    ${INSTALL_SCRIPT} ${FILESDIR}/pimd.in \
        ${STAGEDIR}${PREFIX}/etc/rc.d/pimd
    ${INSTALL_MAN} ${WRKSRC}/pimd.8 ${STAGEDIR}${PREFIX}/man/man8/

.include <bsd.port.mk>