diff options
author | rafan <rafan@FreeBSD.org> | 2006-07-28 15:17:13 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2006-07-28 15:17:13 +0800 |
commit | 34323b9427ab8ceaaaca1928237d6e79dba03fa2 (patch) | |
tree | b311f423d16f53da73d035e01b837db43597400d /sysutils | |
parent | 4e046ac49017d33f990ffbc2abbb37afc693bf88 (diff) | |
download | freebsd-ports-gnome-34323b9427ab8ceaaaca1928237d6e79dba03fa2.tar.gz freebsd-ports-gnome-34323b9427ab8ceaaaca1928237d6e79dba03fa2.tar.zst freebsd-ports-gnome-34323b9427ab8ceaaaca1928237d6e79dba03fa2.zip |
Add p5-Sys-Hostname-FQDN 0.07, get the short or long hostname.
PR: ports/100736
Submitted by: Tsung-Han Yeh <snowfly at yuntech.edu.tw>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/p5-Sys-Hostname-FQDN/Makefile | 33 | ||||
-rw-r--r-- | sysutils/p5-Sys-Hostname-FQDN/distinfo | 3 | ||||
-rw-r--r-- | sysutils/p5-Sys-Hostname-FQDN/pkg-descr | 10 | ||||
-rw-r--r-- | sysutils/p5-Sys-Hostname-FQDN/pkg-plist | 9 |
5 files changed, 56 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 0ea9b84f14d6..ece5ef97657d 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -400,6 +400,7 @@ SUBDIR += p5-Stat-lsMode SUBDIR += p5-Sys-CpuLoad SUBDIR += p5-Sys-Filesystem + SUBDIR += p5-Sys-Hostname-FQDN SUBDIR += p5-Sys-Hostname-Long SUBDIR += p5-Sys-Utmp SUBDIR += p5-SyslogScan diff --git a/sysutils/p5-Sys-Hostname-FQDN/Makefile b/sysutils/p5-Sys-Hostname-FQDN/Makefile new file mode 100644 index 000000000000..e4e44c883ff1 --- /dev/null +++ b/sysutils/p5-Sys-Hostname-FQDN/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: p5-Sys-Hostname-FQDN +# Date created: 2006-07-23 +# Whom: Tsung-Han Yeh <snowfly@yuntech.edu.tw> +# +# $FreeBSD$ +# + +PORTNAME= Sys-Hostname-FQDN +PORTVERSION= 0.07 +CATEGORIES= sysutils perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Sys +PKGNAMEPREFIX= p5- + +MAINTAINER= snowfly@yuntech.edu.tw +COMMENT= Get the short or long hostname + +PERL_CONFIGURE= yes + +MAN3= Sys::Hostname::FQDN.3 + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500600 +IGNORE= requires at least Perl 5.6 due to dependencies. Please install lang/perl5.8 and try again +.endif + +.if ${PERL_LEVEL} < 500601 +BUILD_DEPENDS+= ${SITE_PERL}/base.pm:${PORTSDIR}/devel/p5-Class-Fields +RUN_DEPENDS+= ${SITE_PERL}/base.pm:${PORTSDIR}/devel/p5-Class-Fields +.endif + +.include <bsd.port.post.mk> diff --git a/sysutils/p5-Sys-Hostname-FQDN/distinfo b/sysutils/p5-Sys-Hostname-FQDN/distinfo new file mode 100644 index 000000000000..5d63899d0db4 --- /dev/null +++ b/sysutils/p5-Sys-Hostname-FQDN/distinfo @@ -0,0 +1,3 @@ +MD5 (Sys-Hostname-FQDN-0.07.tar.gz) = ab6b00e3f0781b3e074daa53160d1815 +SHA256 (Sys-Hostname-FQDN-0.07.tar.gz) = 54752e9daeff5f583ed078483a2d51d5ab2934b9aba21b3f230129ff1c421621 +SIZE (Sys-Hostname-FQDN-0.07.tar.gz) = 12632 diff --git a/sysutils/p5-Sys-Hostname-FQDN/pkg-descr b/sysutils/p5-Sys-Hostname-FQDN/pkg-descr new file mode 100644 index 000000000000..d6996e97a438 --- /dev/null +++ b/sysutils/p5-Sys-Hostname-FQDN/pkg-descr @@ -0,0 +1,10 @@ +Sys::Hostname::FQDN uses the host 'C' library +to discover the (usually) short host name, +then uses (perl) gethostbyname to extract the real hostname. + +The results from gethostbyname are exported as gethostinfo +and asciihostinfo as a convenience since they are available. +Similarly, the 'C' library functions inet_ntoa and inet_aton are exported. + +Author: Michael Robinton <michael@bizsystems.com> +WWW: http://search.cpan.org/dist/Sys-Hostname-FQDN/ diff --git a/sysutils/p5-Sys-Hostname-FQDN/pkg-plist b/sysutils/p5-Sys-Hostname-FQDN/pkg-plist new file mode 100644 index 000000000000..a1e2b8bfed85 --- /dev/null +++ b/sysutils/p5-Sys-Hostname-FQDN/pkg-plist @@ -0,0 +1,9 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/Sys/Hostname/FQDN.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys/Hostname/FQDN/.packlist +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys/Hostname/FQDN/FQDN.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys/Hostname/FQDN/FQDN.so +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys/Hostname/FQDN +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys/Hostname +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Sys/Hostname +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Sys |