[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / ucspi-ssl

Annotation of pkgsrc/net/ucspi-ssl/Makefile, Revision 1.21

1.21    ! schmonz     1: # $NetBSD: Makefile,v 1.20 2018/07/11 22:42:51 schmonz Exp $
1.1       schmonz     2: #
                      3:
1.20      schmonz     4: DISTNAME=              ucspi-ssl-0.99e
1.21    ! schmonz     5: PKGREVISION=           1
1.1       schmonz     6: CATEGORIES=            net
1.19      schmonz     7: MASTER_SITES=          https://www.fehcom.de/ipnet/ucspi-ssl/
1.15      schmonz     8: EXTRACT_SUFX=          .tgz
1.1       schmonz     9:
                     10: MAINTAINER=            schmonz@NetBSD.org
1.19      schmonz    11: HOMEPAGE=              https://www.fehcom.de/ipnet/ucspi-ssl.html
1.1       schmonz    12: COMMENT=               Command-line tools for SSL client-server applications
                     13:
1.21    ! schmonz    14: DEPENDS+=              ucspi-tcp6-[0-9]*:../../net/ucspi-tcp6
1.1       schmonz    15:
                     16: WRKSRC=                        ${WRKDIR}/host/superscript.com/net/${PKGNAME_NOREV}
                     17: DJB_SLASHPACKAGE=      YES
1.5       schmonz    18: DJB_RESTRICTED=                no
1.1       schmonz    19:
                     20: SSL_SCRIPTS=           https@ sslcat sslconnect
1.2       schmonz    21: SSL_PROGRAMS=          sslclient sslserver
1.19      schmonz    22: SSL_MAN1PAGES=         ${SSL_SCRIPTS:S/$/.1/g} ${SSL_PROGRAMS:S/$/.1/g}
                     23: SSL_MAN2PAGES=         ucspi-tls.2
1.1       schmonz    24:
1.19      schmonz    25: SUBST_CLASSES+=                prefix
                     26: SUBST_STAGE.prefix=    do-configure
                     27: SUBST_FILES.prefix=    ${SSL_SCRIPTS:S/^/src\//g:S/$/.sh/g}
                     28: SUBST_SED.prefix=      -e 's|HOME/command/|${PREFIX}/bin/|g'
                     29: SUBST_MESSAGE.prefix=  Fixing prefix.
                     30:
                     31: SUBST_CLASSES+=                etc
                     32: SUBST_STAGE.etc=       do-configure
                     33: SUBST_FILES.etc=       src/dns_rcrw.c
                     34: SUBST_SED.etc=         -e 's|/etc/dnsrewrite|${PKG_SYSCONFBASE}/dnsrewrite|g'
                     35: SUBST_MESSAGE.etc=     Fixing prefix.
                     36:
                     37: PKG_USERS_VARS+=       UCSPI_SSL_USER
                     38: PKG_GROUPS_VARS+=      UCSPI_SSL_GROUP
                     39: PKG_GROUPS+=           ${UCSPI_SSL_GROUP}
                     40: PKG_USERS+=            ${UCSPI_SSL_USER}:${UCSPI_SSL_GROUP}
                     41:
                     42: BUILD_DEFS+=           PKG_SYSCONFBASE
                     43: PKG_SYSCONFSUBDIR=     ${PKGBASE}
                     44:
                     45: EGDIR=                 ${PREFIX}/share/examples/${PKGBASE}
                     46: MAKE_DIRS+=            ${PKG_SYSCONFDIR}
                     47: CONF_FILES+=           ${EGDIR}/dh1024.pem ${PKG_SYSCONFDIR}/dh1024.pem
1.1       schmonz    48:
1.15      schmonz    49: DJB_CONFIG_DIR=                ${WRKSRC}
1.1       schmonz    50: DJB_CONFIG_CMDS=                                                       \
1.15      schmonz    51:        ${ECHO} ${PREFIX}/bin > conf-tcpbin;                            \
1.1       schmonz    52:        ${ECHO} > conf-ssl;                                             \
1.19      schmonz    53:        ${ECHO} ${SSLDIR}/certs > conf-cadir;                           \
                     54:        ${ECHO} ${PKG_SYSCONFDIR}/dh1024.pem > conf-dhfile;
1.1       schmonz    55:
                     56: .include "../../mk/bsd.prefs.mk"
                     57:
1.19      schmonz    58: INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man2 share/doc/${PKGBASE} ${EGDIR}
1.1       schmonz    59:
1.19      schmonz    60: do-install: do-install-sslperl
1.1       schmonz    61: .      for i in ${SSL_SCRIPTS}
1.5       schmonz    62:          ${INSTALL_SCRIPT} ${WRKSRC}/command/${i} ${DESTDIR}${PREFIX}/bin
1.1       schmonz    63: .      endfor
                     64:
1.2       schmonz    65: .      for i in ${SSL_PROGRAMS}
1.5       schmonz    66:          ${INSTALL_PROGRAM} ${WRKSRC}/command/${i} ${DESTDIR}${PREFIX}/bin
1.1       schmonz    67: .      endfor
                     68:
1.19      schmonz    69: .      for i in ${SSL_MAN1PAGES}
                     70:          ${INSTALL_MAN} ${WRKSRC}/man/${i} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
                     71: .      endfor
                     72:
                     73: .      for i in ${SSL_MAN2PAGES}
                     74:          ${INSTALL_MAN} ${WRKSRC}/man/${i} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man2
                     75: .      endfor
                     76:
                     77: .      for i in dh1024.pem
                     78:          ${INSTALL_DATA} ${WRKSRC}/etc/${i} ${DESTDIR}${EGDIR}
                     79: .      endfor
                     80:
                     81: .      for i in CERTS CHAIN-SSL CHANGES TODO UCSPI-SSL
1.15      schmonz    82:          ${INSTALL_DATA} ${WRKSRC}/doc/${i} \
1.19      schmonz    83:            ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
1.1       schmonz    84: .      endfor
                     85:
                     86: .include "../../security/openssl/buildlink3.mk"
1.17      schmonz    87: .include "../../mk/dlopen.buildlink3.mk"
1.1       schmonz    88: .include "../../mk/djbware.mk"
                     89: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>