pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/58460: [patch] Change ucspi-ssl package to install libraries
>Number: 58460
>Category: pkg
>Synopsis: [patch] Change ucspi-ssl package to install libraries
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Jul 23 23:10:00 +0000 2024
>Originator: George Matsumura
>Release: pkgsrc current
>Organization:
>Environment:
System: NetBSD cnbsd2 10.0 NetBSD 10.0 (GENERIC64) #0: Thu Mar 28 08:33:33 UTC 2024 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
Architecture: aarch64
Machine: evbarm
>Description:
The included patch alters the ucspi-ssl package to install the ucspissl.a
library and a corresponding header file, ucspissl.h. These are required for
building software that uses this library, such as s/qmail.
As an example from other package repostiories, Void Linux, a Linux distribution
that packages ucspi-ssl, provides a separate development package that includes
these files:
https://github.com/void-linux/void-packages/blob/d56e8d92cd51a3abb5f83f51cc8551c2e613b90c/srcpkgs/ucspi-ssl/template#L71
>How-To-Repeat:
>Fix:
Index: net/ucspi-ssl/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/ucspi-ssl/Makefile,v
retrieving revision 1.63
diff -u -r1.63 Makefile
--- net/ucspi-ssl/Makefile 9 Dec 2023 19:10:12 -0000 1.63
+++ net/ucspi-ssl/Makefile 23 Jul 2024 20:11:14 -0000
@@ -2,6 +2,7 @@
#
DISTNAME= ucspi-ssl-0.12.10
+PKGREVISION= 1
PKGNAME= ${DISTNAME:S/-0./-0.999./}
CATEGORIES= net
MASTER_SITES= https://www.fehcom.de/ipnet/ucspi-ssl/
@@ -17,6 +18,8 @@
SSL_SCRIPTS= https@ sslcat sslconnect
SSL_PROGRAMS= sslclient sslserver
+SSL_LIBS= ucspissl.a
+SSL_HEADERS= ucspissl.h
SSL_MAN1PAGES= ${SSL_SCRIPTS:S/$/.1/g} ${SSL_PROGRAMS:S/$/.1/g}
SSL_MAN1PAGES+= sslhandle.1
SSL_MAN2PAGES= ucspi-tls.2
@@ -44,7 +47,7 @@
# from `postconf -d | grep tls_medium_cipherlist`
DEFAULT_MEDIUM_CIPHERS= aNULL:-aNULL:HIGH:MEDIUM:+RC4:@STRENGTH
-INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man2 share/doc/${PKGBASE} ${EGDIR}
+INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man1 ${PKGMANDIR}/man2 share/doc/${PKGBASE} ${EGDIR}
.include "options.mk"
@@ -61,6 +64,14 @@
${INSTALL_PROGRAM} ${WRKSRC}/command/${i} ${DESTDIR}${PREFIX}/bin
.endfor
+.for i in ${SSL_LIBS}
+ ${INSTALL_DATA} ${WRKSRC}/compile/${i} ${DESTDIR}${PREFIX}/lib
+.endfor
+
+.for i in ${SSL_HEADERS}
+ ${INSTALL_DATA} ${WRKSRC}/compile/${i} ${DESTDIR}${PREFIX}/include
+.endfor
+
.for i in ${SSL_MAN1PAGES}
${INSTALL_MAN} ${WRKSRC}/man/${i} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.endfor
Index: net/ucspi-ssl/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/net/ucspi-ssl/PLIST,v
retrieving revision 1.7
diff -u -r1.7 PLIST
--- net/ucspi-ssl/PLIST 9 Dec 2023 19:10:12 -0000 1.7
+++ net/ucspi-ssl/PLIST 23 Jul 2024 20:11:14 -0000
@@ -5,6 +5,8 @@
bin/sslconnect
${PLIST.perl}bin/sslperl
bin/sslserver
+include/ucspissl.h
+lib/ucspissl.a
man/man1/https@.1
man/man1/sslcat.1
man/man1/sslclient.1
Home |
Main Index |
Thread Index |
Old Index