[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.27

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

CVSweb <webmaster@jp.NetBSD.org>