From 48ccecdcf34b83b924f447722883c32c080f1f76 Mon Sep 17 00:00:00 2001 From: Ypnose Date: Thu, 1 May 2014 13:12:57 +0200 Subject: [PATCH] network-ups-tools: upgrade to 2.7.2 and include libs --- common/shlibs | 2 ++ srcpkgs/libnetwork-ups-tools | 1 + srcpkgs/network-ups-tools-devel | 1 + srcpkgs/network-ups-tools/template | 30 +++++++++++++++++++++++------- 4 files changed, 27 insertions(+), 7 deletions(-) create mode 120000 srcpkgs/libnetwork-ups-tools create mode 120000 srcpkgs/network-ups-tools-devel diff --git a/common/shlibs b/common/shlibs index 4a46d7e0e51..bcda10d0bf0 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1581,3 +1581,5 @@ libgdkglext-x11-1.0.so.0 gtkglext-1.2.0_4 libXaw3d.so.8 libXaw3d-1.6.2_1 libshiboken-python2.7.so.1.2 python-shiboken-1.2.2_1 libpyside-python2.7.so.1.2 python-pyside-1.2.2_1 +libupsclient.so.4 libnetwork-ups-tools-2.7.2_1 +libnutclient.so.0 libnetwork-ups-tools-2.7.2_1 diff --git a/srcpkgs/libnetwork-ups-tools b/srcpkgs/libnetwork-ups-tools new file mode 120000 index 00000000000..047d589b1c1 --- /dev/null +++ b/srcpkgs/libnetwork-ups-tools @@ -0,0 +1 @@ +network-ups-tools \ No newline at end of file diff --git a/srcpkgs/network-ups-tools-devel b/srcpkgs/network-ups-tools-devel new file mode 120000 index 00000000000..047d589b1c1 --- /dev/null +++ b/srcpkgs/network-ups-tools-devel @@ -0,0 +1 @@ +network-ups-tools \ No newline at end of file diff --git a/srcpkgs/network-ups-tools/template b/srcpkgs/network-ups-tools/template index dbfe21281e3..3f9eb3d4af2 100644 --- a/srcpkgs/network-ups-tools/template +++ b/srcpkgs/network-ups-tools/template @@ -1,16 +1,16 @@ # Template file for 'network-ups-tools' pkgname=network-ups-tools -version=2.6.5 -revision=2 +version=2.7.2 +revision=1 build_style=gnu-configure configure_args=" --sbindir=/usr/bin --sysconfdir=/etc/ups --without-doc --disable-static --datadir=/usr/share/ups --with-user=nut --with-group=nut --with-ssl --with-usb --without-dev --with-serial -with-avahi --with-udev-dir=/usr/lib/udev - --with-systemdsystemunitdir=/lib/systemd/system" + --with-systemdsystemunitdir=/lib/systemd/system --without-libltdl --without-ipmi + --without-freeipmi" hostmakedepends="pkg-config" makedepends="avahi-libs-devel openssl-devel libusb-compat-devel systemd-devel neon-devel" -depends="shadow" system_accounts="nut" conf_files=" /etc/ups/ups.conf @@ -23,16 +23,32 @@ short_desc="NUT provides UPS control and monitoring features" maintainer="Ypnose " license="GPL-2" homepage="http://www.networkupstools.org/" -distfiles="http://www.networkupstools.org/source/2.6/nut-$version.tar.gz" -checksum=618df71cf1ca6e3700d1d3c282773a2dec85f9f20324c0d3234c824e97feb93f +distfiles="http://www.networkupstools.org/source/2.7/nut-$version.tar.gz" +checksum=4d5365359b059d96dfcb77458f361a114d26c84f1297ffcd0c6c166f7200376d wrksrc="nut-${version}" post_install() { # remove unused stuff - rm -rf ${DESTDIR}/usr/{include,html,cgi-bin,lib/pkgconfig} + rm -rf ${DESTDIR}/usr/{html,cgi-bin} # Prepare configuration files for f in ups upsd upsmon upssched nut; do mv ${DESTDIR}/etc/ups/${f}.conf{.sample,} done mv ${DESTDIR}/etc/ups/upsd.users{.sample,} } + +libnetwork-ups-tools_package() { + short_desc+=" - runtime library" + pkg_install() { + vmove "usr/lib/*.so.*" + } +} + +network-ups-tools-devel_package() { + short_desc+=" - development files" + depends="lib${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove "usr/lib/*.so" + } +} +