aboutsummaryrefslogtreecommitdiffstats
path: root/net/libnss-cache/Makefile
blob: 85c6a81929431d565c438e01d1ca40c92558fe12 (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
# Created by: Kevin Bowling <k@kev009.com>
# $FreeBSD$

PORTNAME=   libnss-cache
PORTVERSION=    0.13
PORTREVISION=   1
CATEGORIES= net

MAINTAINER= k@kev009.com
COMMENT=    NSS module for directory services using an indexed, local disk cache

LICENSE=    LGPL3
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       gmake
USE_LDCONFIG=   yes
USE_GITHUB= yes
GH_ACCOUNT= google
GH_TAGNAME= 7df95b7182eb71663dc7910b530ea0dec6fea205

PLIST_FILES=    lib/nss_nsscache.so lib/nss_nsscache.so.1

post-patch:
    ${REINPLACE_CMD} -e 's|PREFIX=$$(DESTDIR)/usr|PREFIX=${STAGEDIR}${PREFIX}|g' \
        -e 's|LIBRARY=libnss_cache.so.2.0|LIBRARY=nss_nsscache.so.1|g' \
        -e 's|BASE_LIBRARY=libnss_cache.so.2|BASE_LIBRARY=nss_nsscache.so|g' \
        -e 's|SONAME=libnss_cache.so.2|SONAME=nss_nsscahe.so.1|g' \
        ${WRKSRC}/Makefile

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/nss_nsscache.so.1

.include <bsd.port.mk>