initial import
This commit is contained in:
56
perl-net-ip/LICENSE
Normal file
56
perl-net-ip/LICENSE
Normal file
@@ -0,0 +1,56 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: Net-IP
|
||||
Upstream-Contact: Manuel Valente <manuel.valente@gmail.com>
|
||||
Source: https://metacpan.org/release/Net-IP
|
||||
|
||||
Files: *
|
||||
Copyright: 1999-2000, RIPE NCC
|
||||
License: Artistic or GPL-1+
|
||||
|
||||
Files: ipcount
|
||||
Copyright: 2000, RIPE NCC
|
||||
License: Expat
|
||||
|
||||
Files: IP.pm
|
||||
Copyright: 1999-2002, RIPE NCC
|
||||
License: Expat
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2003-2006, Frederic Schutz <schutz@mathgen.ch>
|
||||
2011, Nicholas Bamber <nicholas@periapt.co.uk>
|
||||
2012, Xavier Guimard <x.guimard@free.fr>
|
||||
License: Artistic or GPL-1+
|
||||
|
||||
License: Artistic
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the Artistic License, which comes with Perl.
|
||||
.
|
||||
On Debian systems, the complete text of the Artistic License can be
|
||||
found in `/usr/share/common-licenses/Artistic'.
|
||||
|
||||
License: Expat
|
||||
All Rights Reserved
|
||||
.
|
||||
Permission to use, copy, modify, and distribute this software and its
|
||||
documentation for any purpose and without fee is hereby granted,
|
||||
provided that the above copyright notice appear in all copies and that
|
||||
both that copyright notice and this permission notice appear in
|
||||
supporting documentation, and that the name of the author not be
|
||||
used in advertising or publicity pertaining to distribution of the
|
||||
software without specific, written prior permission.
|
||||
.
|
||||
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
||||
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL
|
||||
AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
|
||||
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
||||
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
License: GPL-1+
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 1, or (at your option)
|
||||
any later version.
|
||||
.
|
||||
On Debian systems, the complete text of version 1 of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL-1'.
|
||||
47
perl-net-ip/PKGBUILD
Normal file
47
perl-net-ip/PKGBUILD
Normal file
@@ -0,0 +1,47 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=perl-net-ip
|
||||
_realname=Net-IP
|
||||
pkgver=1.26
|
||||
_debver=1.26
|
||||
_debrel=2
|
||||
pkgrel=1
|
||||
pkgdesc="Perl Module: Easy manipulation of IPv4 and IPv6 addresses"
|
||||
arch=('any')
|
||||
license=('GPL-1')
|
||||
url="https://search.cpan.org/dist/Net-IP/"
|
||||
depends=('perl')
|
||||
makedepends=('quilt')
|
||||
options=(!emptydirs)
|
||||
source=("https://www.cpan.org/authors/id/M/MA/MANU/Net-IP-$pkgver.tar.gz"
|
||||
"https://deb.debian.org/debian/pool/main/libn/libnet-ip-perl/libnet-ip-perl_$_debver-$_debrel.debian.tar.xz"
|
||||
"LICENSE")
|
||||
sha512sums=('c561f32b6ca5dc082e2bc6c47000a2ca0f5ee7abb47105f5b1bf98cb76723287416de0a767ea63c18f87964df7f3982c7258fe1208afa22cff0378ae3509d9eb'
|
||||
'8e7fd1de846224225126f6ade4a5d0374b5632f14a9a3f3264836eb1b6821164b02e10e9146a4f687bdc004f41eda18edc8258c49400fe6b314e0db8847b4a02'
|
||||
'5fa545bcf154a2ca1c258dc85cc0ab185a98f7ca57b845ccc38b943080cbd6019da962c2d39e5297c782f96b083b18d87d893367cbb34439a8e1cfa8e3a32398')
|
||||
|
||||
prepare() {
|
||||
cd Net-IP-$pkgver
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd Net-IP-$pkgver
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd Net-IP-$pkgver
|
||||
make install DESTDIR="$pkgdir"
|
||||
install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/$pkgname"
|
||||
}
|
||||
Reference in New Issue
Block a user