BSD Ports

sysutils/p5-Sys-Hostname-Long 1.5_1 MidnightBSD

Try every conceivable way to get full hostname

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic, gpl+
Categories
sysutils, perl5

Description

How to get the host full name in perl on multiple operating systems (OS X, Windows, Unix* etc)

Attempt via many methods to get the systems full name. The Sys::Hostname class is the best and standard way to get the system hostname. However it is missing the long hostname.

In the other systems

SystemPortVersion
MidnightBSDsysutils/p5-Sys-Hostname-Long1.5_1
FreeBSDsysutils/p5-Sys-Hostname-Long1.5_1
OpenBSDnet/p5-Sys-Hostname-Long1.5p0
NetBSDsysutils/p5-Sys-Hostname-Long1.5nb11
DragonFlysysutils/p5-Sys-Hostname-Long1.5_1
HardenedBSDsysutils/p5-Sys-Hostname-Long1.5_1
GhostBSDsysutils/p5-Sys-Hostname-Long1.5_1

Install

Binary package:

mport install p5-Sys-Hostname-Long

From mports:

cd /usr/mports/sysutils/p5-Sys-Hostname-Long && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Sys-Hostname-Long>0:sysutils/p5-Sys-Hostname-Long

Dependencies

Required by 1

Configuration

No options to configure.

USES
perl5 shebangfix
Service scripts
none

Files

pkg-plist 3
  • %%SITE_PERL%%/Sys/Hostname/Long.pm
  • %%SITE_PERL%%/Sys/Hostname/testall.pl
  • %%PERL5_MAN3%%/Sys::Hostname::Long.3.gz
distinfo 1
FileSizeSHA256
Sys-Hostname-Long-1.5.tar.gz5474e9186df3706a877efd6149f2c711d6cf87dd6cf72f6ab935ba8121b225b265cb
Master sites 1
  • CPAN