summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>2011-07-29 15:13:58 +0000
committerbouyer <bouyer@pkgsrc.org>2011-07-29 15:13:58 +0000
commit7ccb030898b7b76e5cda5bacc7dee48c4eaf9cf1 (patch)
tree79d89fbf8f1439f602a9b5f01dd8c076f61c7903 /sysutils
parente0c74b57be2d552372267adf7f1e8f968e4687b8 (diff)
downloadpkgsrc-7ccb030898b7b76e5cda5bacc7dee48c4eaf9cf1.tar.gz
Initial import of p5-UPS-Nut version 2.6.1:
Perl interface to talk to the NUT upsd network daemon
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/p5-UPS-Nut/DESCR1
-rw-r--r--sysutils/p5-UPS-Nut/Makefile21
-rw-r--r--sysutils/p5-UPS-Nut/files/Makefile.PL9
3 files changed, 31 insertions, 0 deletions
diff --git a/sysutils/p5-UPS-Nut/DESCR b/sysutils/p5-UPS-Nut/DESCR
new file mode 100644
index 00000000000..438dcc45068
--- /dev/null
+++ b/sysutils/p5-UPS-Nut/DESCR
@@ -0,0 +1 @@
+Perl interface to talk to the NUT upsd network daemon
diff --git a/sysutils/p5-UPS-Nut/Makefile b/sysutils/p5-UPS-Nut/Makefile
new file mode 100644
index 00000000000..63a2f05c49b
--- /dev/null
+++ b/sysutils/p5-UPS-Nut/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/07/29 15:13:58 bouyer Exp $
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "../../sysutils/ups-nut/Makefile.common"
+
+PKGNAME= ${DISTNAME:S/nut/p5-UPS-Nut/}
+COMMENT= Network UPS Tools perl binding
+CATEGORIES= sysutils perl5
+PKG_DESTDIR_SUPPORT= user-destdir
+PATCHDIR=
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/scripts/perl
+
+PERL5_PACKLIST= auto/UPS/Nut/.packlist
+
+pre-configure:
+ ${CP} ${FILESDIR}/Makefile.PL ${WRKSRC}
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/p5-UPS-Nut/files/Makefile.PL b/sysutils/p5-UPS-Nut/files/Makefile.PL
new file mode 100644
index 00000000000..f14a5ce47e4
--- /dev/null
+++ b/sysutils/p5-UPS-Nut/files/Makefile.PL
@@ -0,0 +1,9 @@
+use ExtUtils::MakeMaker;
+# See lib/ExtUtils/MakeMaker.pm for details of how to influence
+# the contents of the Makefile that is written.
+WriteMakefile(
+ NAME => 'UPS::Nut',
+ VERSION_FROM => 'Nut.pm', # finds $VERSION
+ AUTHOR => 'Gabor Kiss <kissg@ssg.ki.iif.hu>',
+ ABSTRACT => 'A module for communicating with a UPS via the NUT upsd'
+);