pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/p5-Sys-Hostname-Long Initial import of p5-Sys...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9a9e26d91560
branches: trunk
changeset: 470144:9a9e26d91560
user: heinz <heinz%pkgsrc.org@localhost>
date: Sun Mar 07 01:23:28 2004 +0000
description:
Initial import of p5-Sys-Hostname-Long.
This Perl module tries to determine the full host name in a portable way
on multiple operating systems (mac, windows, unix*).
A patch is included which should make this module work on most *nix
platforms, not just on Linux. Submitted to the author via rt.cpan.org.
diffstat:
sysutils/p5-Sys-Hostname-Long/DESCR | 2 ++
sysutils/p5-Sys-Hostname-Long/Makefile | 22 ++++++++++++++++++++++
sysutils/p5-Sys-Hostname-Long/PLIST | 1 +
sysutils/p5-Sys-Hostname-Long/distinfo | 5 +++++
sysutils/p5-Sys-Hostname-Long/patches/patch-aa | 16 ++++++++++++++++
5 files changed, 46 insertions(+), 0 deletions(-)
diffs (66 lines):
diff -r 7a43ed20bfe2 -r 9a9e26d91560 sysutils/p5-Sys-Hostname-Long/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/p5-Sys-Hostname-Long/DESCR Sun Mar 07 01:23:28 2004 +0000
@@ -0,0 +1,2 @@
+This Perl module tries to determine the full host name in a portable way
+on multiple operating systems (mac, windows, unix*).
diff -r 7a43ed20bfe2 -r 9a9e26d91560 sysutils/p5-Sys-Hostname-Long/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/p5-Sys-Hostname-Long/Makefile Sun Mar 07 01:23:28 2004 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/03/07 01:23:28 heinz Exp $
+#
+
+DISTNAME= Sys-Hostname-Long-1.0
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= sysutils perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Sys/}
+
+MAINTAINER= heinz%NetBSD.org@localhost
+HOMEPAGE= http://search.cpan.org/dist/Sys-Hostname-Long/
+COMMENT= Try to get the full hostname in Perl
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+USE_BUILDLINK3= yes
+USE_LANGUAGES= # empty
+
+pre-configure:
+ @ ${RM} ${WRKSRC}/lib/Sys/Hostname/Long.pm.orig
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 7a43ed20bfe2 -r 9a9e26d91560 sysutils/p5-Sys-Hostname-Long/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/p5-Sys-Hostname-Long/PLIST Sun Mar 07 01:23:28 2004 +0000
@@ -0,0 +1,1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/03/07 01:23:28 heinz Exp $
diff -r 7a43ed20bfe2 -r 9a9e26d91560 sysutils/p5-Sys-Hostname-Long/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/p5-Sys-Hostname-Long/distinfo Sun Mar 07 01:23:28 2004 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/03/07 01:23:28 heinz Exp $
+
+SHA1 (Sys-Hostname-Long-1.0.tar.gz) = 8e55d84e84dbc9a75bf90b17f968394f58177368
+Size (Sys-Hostname-Long-1.0.tar.gz) = 2286 bytes
+SHA1 (patch-aa) = 8ca0721838baac7b15dd2eaf4b49d106f06c041f
diff -r 7a43ed20bfe2 -r 9a9e26d91560 sysutils/p5-Sys-Hostname-Long/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/p5-Sys-Hostname-Long/patches/patch-aa Sun Mar 07 01:23:28 2004 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/03/07 01:23:28 heinz Exp $
+
+--- lib/Sys/Hostname/Long.pm.orig Sat Sep 22 08:23:46 2001
++++ lib/Sys/Hostname/Long.pm
+@@ -35,8 +35,9 @@ sub hostname_long {
+ # . Linux
+ # . FreeBSD
+ # - MacOS X (Rhapsody/Darwin)
+- $hostlong = `hostname --fqdn`;
+- $hostlong =~ tr/\0\r\n//d;
++ # Emulate `hostname --fqdn` with Perl; more portable
++ $hostlong = Sys::Hostname::hostname();
++ ($hostlong) = gethostbyname($hostlong);
+ }
+
+ return $hostlong;
Home |
Main Index |
Thread Index |
Old Index