Skip to content

Commit d93ecd7

Browse files
committed
ZCS-13983:Replaced perl-net-libidn with perl-net-libidn2 for RHEL9
1 parent 02e04eb commit d93ecd7

14 files changed

Lines changed: 196 additions & 1 deletion

File tree

perl-versions.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ NET_HTTP := 6.09
7373
NET_LDAP := 0.65
7474
NET_LDAPAPI := 3.0.3
7575
NET_LIBIDN := 0.12
76+
NET_LIBIDN2 := 1.02
7677
NET_SERVER := 2.009
7778
NET_SSLEAY := 1.92
7879
NETADDR_IP := 4.078
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
PKG_ROOT := $(shell pwd)
2+
3+
include $(PKG_ROOT)/../../package.def
4+
5+
pvers := $(NET_LIBIDN2)
6+
pname := Net-LibIDN2
7+
pname_lc := net-libidn2
8+
9+
pfile := $(pname)-$(pvers).tar.gz
10+
psrc_file := $(SRC_DIR)/$(pfile)
11+
purl := https://cpan.metacpan.org/authors/id/T/TH/THOR/$(pfile)
12+
zname := zimbra-perl-$(pname_lc)
13+
zspec := $(pname_lc).spec
14+
15+
.PHONY: all checkos clean build getsrc pkgadd pkgrm setup
16+
17+
all: checkos clean getsrc build pkgrm1
18+
19+
checkos:
20+
ifneq ($(BUILD_PLATFORM), RHEL9_64)
21+
@echo "Skipping OS, not required"
22+
@exit 1
23+
endif
24+
25+
# $(@D) == directory part of the target
26+
getsrc: $(psrc_file)
27+
$(psrc_file):
28+
$(MKDIR) $(@D) && $(CD) $(@D) && $(WGET) $(purl)
29+
30+
pkgadd:
31+
$(PKG_EXTRACT) zimbra-perl-base
32+
33+
pkgrm: pkgrm%
34+
pkgrm%:
35+
$(PKG_PURGE) zimbra-base
36+
37+
setup:
38+
$(generic-setup)
39+
40+
build: setup pkgadd build_$(PKG_EXT)
41+
42+
build_rpm: specfile = SPECS/$(zspec)
43+
build_rpm:
44+
$(CD) $(PLATFORM_DIR)/$(zname)/rpm && \
45+
$(replace-pkginfo) $(specfile) && \
46+
$(replace-pathinfo) $(specfile) && \
47+
$(replace-perl-modinfo) $(specfile) && \
48+
$(MKDIR) BUILD BUILDROOT RPMS SOURCES SRPMS && \
49+
$(CP) $(psrc_file) SOURCES/$(zname)-$(pvers).tar.gz && \
50+
$(PKG_BUILD) $(specfile)
51+
52+
build_deb: z_tgz = $(zname)_$(pvers).orig.tar.gz
53+
build_deb: z_shlibs = $(subst $(zname)/,,$(wildcard $(zname)/debian/z*.shlibs))
54+
build_deb:
55+
$(CD) $(PLATFORM_DIR)/$(zname) && \
56+
$(replace-pkginfo) debian/changelog $(z_shlibs) && \
57+
$(replace-pathinfo) debian/rules && \
58+
$(replace-perl-modinfo) debian/changelog debian/control debian/copyright debian/watch && \
59+
$(CP) $(psrc_file) ../$(z_tgz) && \
60+
$(TAR) xfz ../$(z_tgz) --strip-components=1 --exclude=debian && \
61+
$(CP) $(PKG_ROOT)/patches/*.patch debian/patches/ && \
62+
$(PKG_BUILD)
63+
64+
clean: pkgrm
65+
$(generic-clean)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
zimbra-perl-MODNORMNAME (VERSION-ITERATIONZAPPEND) unstable; urgency=low
2+
3+
* Initial Release.
4+
5+
-- Zimbra Packaging Services <packaging-devel@zimbra.com> Wed, 9 Sep 2015 00:00:00 +0000
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Source: zimbra-perl-MODNORMNAME
2+
Section: perl
3+
Priority: optional
4+
Maintainer: Zimbra Packaging Services <packaging-devel@zimbra.com>
5+
Build-Depends: debhelper (>= 9), zimbra-perl-base, libidn2-dev
6+
Standards-Version: 3.9.5
7+
Homepage: https://metacpan.org/release/MODNAME
8+
9+
Package: zimbra-perl-MODNORMNAME
10+
Architecture: all
11+
Depends: ${misc:Depends}, ${perl:Depends}, ${shlibs:Depends}, zimbra-perl-base,
12+
libidn2
13+
Description: Net::LibIDN - Perl bindings for GNU Libidn
14+
Provides bindings for GNU Libidn, a C library for handling
15+
Internationalized Domain Names according to IDNA (RFC 3490),
16+
in a way very much inspired by Turbo Fredriksson's PHP-IDN.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Source: https://metacpan.org/release/MODNAME
3+
Upstream-Contact: jacob@internet24.de
4+
Upstream-Name: MODNAME
5+
6+
Files: *
7+
Copyright: 2003-2009, Thomas Jacob, Internet24.de
8+
License: Artistic or GPL-1+
9+
10+
Files: debian/*
11+
Copyright: 2015, Zimbra Packaging Services <packaging-devel@zimbra.com>
12+
License: GPL-2
13+
14+
License: Artistic
15+
This program is free software; you can redistribute it and/or modify
16+
it under the terms of the Artistic License, which comes with Perl.
17+
.
18+
On Debian systems, the complete text of the Artistic License can be
19+
found in `/usr/share/common-licenses/Artistic'.
20+
21+
License: GPL-1+
22+
This program is free software; you can redistribute it and/or modify
23+
it under the terms of the GNU General Public License as published by
24+
the Free Software Foundation; either version 1, or (at your option)
25+
any later version.
26+
.
27+
On Debian systems, the complete text of version 1 of the GNU General
28+
Public License can be found in `/usr/share/common-licenses/GPL-1'.
29+
30+
License: GPL-2
31+
This program is free software; you can redistribute it and/or modify
32+
it under the terms of the GNU General Public License as published by
33+
the Free Software Foundation; either version 2 of the License, or
34+
(at your option) any later version.
35+
.
36+
On Debian systems, the full text of the GNU General Public License
37+
version 2 can be found in `/usr/share/common-licenses/GPL-2'.

thirdparty/perl-net-libidn2/zimbra-perl-net-libidn2/debian/patches/series

Whitespace-only changes.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/make -f
2+
3+
%:
4+
dh $@
5+
6+
override_dh_auto_configure:
7+
perl -I OZCL/perl5 Build.PL INSTALL_BASE=OZC \
8+
INSTALLSITEMAN1DIR=OZCS/man/man1 INSTALLSITEMAN3DIR=OZCS/man/man3 \
9+
LIB=OZCL/perl5
10+
11+
# these need to know about our custom location for modules
12+
override_dh_perl:
13+
dh_perl OZCL/perl5
14+
15+
override_dh_auto_test:
16+
PERL5LIB=OZCL/perl5 dh_auto_test
17+
18+
# remove .packlist and perllocal.pod
19+
# $(DESTINSTALLSITEARCH)/auto/$(FULLEXT)/.packlist
20+
# $(DESTINSTALLSITEARCH)/perllocal.pod
21+
PERL_ARCHNAME := $(shell perl -MConfig -e 'print $$Config{archname}')
22+
override_dh_auto_install:
23+
./Build install destdir=$(CURDIR)/debian/$(shell dh_listpackages)/OZCL/perl5/$(PERL_ARCHNAME)
24+
25+
rm -f $(CURDIR)/debian/$(shell dh_listpackages)/OZCL/perl5/$(PERL_ARCHNAME)/perllocal.pod
26+
rm -f $(CURDIR)/debian/$(shell dh_listpackages)/OZCL/perl5/$(PERL_ARCHNAME)/auto/*/*/.packlist
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
version=3
2+
https://metacpan.org/release/MODNAME .*/MODNAME-v?(\d[\d.-]*)\.(?:tar(?:\.gz|\.bz2)?|tgz)$

0 commit comments

Comments
 (0)