Date: Sun, 23 Jul 2006 13:53:27 +0800 (CST) From: Tsung-Han Yeh <snowfly@yuntech.edu.tw> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/100736: [NEW PORT] net/p5-Sys-Hostname-FQDN: Get the short or long hostname Message-ID: <200607230553.k6N5rRbC046343@AntiVirus.yuntech.edu.tw> Resent-Message-ID: <200607230540.k6N5eDEg057016@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 100736 >Category: ports >Synopsis: [NEW PORT] net/p5-Sys-Hostname-FQDN: Get the short or long hostname >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jul 23 05:40:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Tsung-Han Yeh >Release: FreeBSD 6.0-STABLE i386 >Organization: >Environment: System: FreeBSD AntiVirus.yuntech.edu.tw 6.0-STABLE FreeBSD 6.0-STABLE #0: Sun Nov 27 22:46:26 CST 2005 >Description: 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/ Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- p5-Sys-Hostname-FQDN-0.07.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # p5-Sys-Hostname-FQDN # p5-Sys-Hostname-FQDN/pkg-descr # p5-Sys-Hostname-FQDN/Makefile # p5-Sys-Hostname-FQDN/pkg-plist # p5-Sys-Hostname-FQDN/distinfo # echo c - p5-Sys-Hostname-FQDN mkdir -p p5-Sys-Hostname-FQDN > /dev/null 2>&1 echo x - p5-Sys-Hostname-FQDN/pkg-descr sed 's/^X//' >p5-Sys-Hostname-FQDN/pkg-descr << 'END-of-p5-Sys-Hostname-FQDN/pkg-descr' XSys::Hostname::FQDN uses the host 'C' library Xto discover the (usually) short host name, Xthen uses (perl) gethostbyname to extract the real hostname. X XThe results from gethostbyname are exported as gethostinfo Xand asciihostinfo as a convenience since they are available. XSimilarly, the 'C' library functions inet_ntoa and inet_aton are exported. X XAuthor: Michael Robinton <michael@bizsystems.com> XWWW: http://search.cpan.org/dist/Sys-Hostname-FQDN/ END-of-p5-Sys-Hostname-FQDN/pkg-descr echo x - p5-Sys-Hostname-FQDN/Makefile sed 's/^X//' >p5-Sys-Hostname-FQDN/Makefile << 'END-of-p5-Sys-Hostname-FQDN/Makefile' X# New ports collection makefile for: p5-Sys-Hostname-FQDN X# Date created: 2006-07-23 X# Whom: Tsung-Han Yeh <snowfly@yuntech.edu.tw> X# X# $FreeBSD$ X# X XPORTNAME= Sys-Hostname-FQDN XPORTVERSION= 0.07 XCATEGORIES= net perl5 XMASTER_SITES= ${MASTER_SITE_PERL_CPAN} XMASTER_SITE_SUBDIR= Sys XPKGNAMEPREFIX= p5- X XMAINTAINER= snowfly@yuntech.edu.tw XCOMMENT= Get the short or long hostname X XPERL_CONFIGURE= yes X XMAN3= Sys::Hostname::FQDN.3 X X.include <bsd.port.pre.mk> X X.if ${PERL_LEVEL} < 500600 XIGNORE= requires at least Perl 5.6 due to dependencies. Please install lang/perl5.8 and try again X.endif X X.if ${PERL_LEVEL} < 500601 XBUILD_DEPENDS= ${SITE_PERL}/base.pm:${PORTSDIR}/devel/p5-Class-Fields XRUN_DEPENDS= ${BUILD_DEPENDS} X.endif X X.include <bsd.port.post.mk> END-of-p5-Sys-Hostname-FQDN/Makefile echo x - p5-Sys-Hostname-FQDN/pkg-plist sed 's/^X//' >p5-Sys-Hostname-FQDN/pkg-plist << 'END-of-p5-Sys-Hostname-FQDN/pkg-plist' X%%SITE_PERL%%/%%PERL_ARCH%%/Sys/Hostname/FQDN.pm X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys/Hostname/FQDN/.packlist X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys/Hostname/FQDN/FQDN.bs X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys/Hostname/FQDN/FQDN.so X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys/Hostname/FQDN X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys/Hostname X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Sys/Hostname X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Sys END-of-p5-Sys-Hostname-FQDN/pkg-plist echo x - p5-Sys-Hostname-FQDN/distinfo sed 's/^X//' >p5-Sys-Hostname-FQDN/distinfo << 'END-of-p5-Sys-Hostname-FQDN/distinfo' XMD5 (Sys-Hostname-FQDN-0.07.tar.gz) = ab6b00e3f0781b3e074daa53160d1815 XSHA256 (Sys-Hostname-FQDN-0.07.tar.gz) = 54752e9daeff5f583ed078483a2d51d5ab2934b9aba21b3f230129ff1c421621 XSIZE (Sys-Hostname-FQDN-0.07.tar.gz) = 12632 END-of-p5-Sys-Hostname-FQDN/distinfo exit --- p5-Sys-Hostname-FQDN-0.07.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607230553.k6N5rRbC046343>