diff options
author | root <root@rshg054.dnsready.net> | 2013-05-31 06:21:03 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-05-31 06:21:03 -0700 |
commit | 7e7561a9640d0e1f54288a391239feb6bd691b56 (patch) | |
tree | d3b51b006a1133ace68d149692d9bd9fb3f981a9 /community/partimage | |
parent | 94a3b302f520438e919ef8706ce9cf42ad7c2e11 (diff) |
Fri May 31 06:21:01 PDT 2013
Diffstat (limited to 'community/partimage')
-rw-r--r-- | community/partimage/PKGBUILD | 11 | ||||
-rw-r--r-- | community/partimage/partimaged | 64 | ||||
-rw-r--r-- | community/partimage/partimaged.service | 2 |
3 files changed, 5 insertions, 72 deletions
diff --git a/community/partimage/PKGBUILD b/community/partimage/PKGBUILD index 2fe4fa830..f3cecc40a 100644 --- a/community/partimage/PKGBUILD +++ b/community/partimage/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 77310 2012-10-08 15:54:38Z lfleischer $ +# $Id: PKGBUILD 92035 2013-05-31 00:06:34Z seblu $ # Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de> # Contributor: Roman Kyrylych <roman@archlinux.org> # Contributor: Sven Kauber <celeon@gmail.com> @@ -7,7 +7,7 @@ pkgname=partimage pkgver=0.6.9 -pkgrel=3 +pkgrel=4 pkgdesc='Partition Image saves partitions in many formats to an image file.' arch=('i686' 'x86_64') url='http://www.partimage.org/' @@ -17,21 +17,19 @@ backup=('etc/partimaged/partimagedusers') install='partimage.install' source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2" 'partimage-0.6.9-zlib-1.2.6.patch' - 'partimaged' 'partimaged-gencrt' 'partimaged.service') md5sums=('1bc046fd915c5debbafc85729464e513' '202c4334766041d98c5f67c9d62c3063' - 'f3b517a62de5540f3b1a8b7edf65b7ec' '2316b116227b07efb48266e660ca1ba1' - '4102983fdf6e7af7cac73fdf9d37a6f6') + '5f8dae511cdfbf097409a45e9642a372') build() { cd "${srcdir}/${pkgname}-${pkgver}" patch -p1 -i ../partimage-0.6.9-zlib-1.2.6.patch - ./configure --prefix=/usr --sysconfdir=/etc --enable-pam + ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --enable-pam make make pamfile } @@ -42,7 +40,6 @@ package() { make DESTDIR="${pkgdir}" install install -Dm0644 partimaged.pam "${pkgdir}/etc/pam.d/partimaged" - install -Dm0755 "${srcdir}/partimaged" "${pkgdir}/etc/rc.d/partimaged" install -Dm0755 "${srcdir}/partimaged-gencrt" "${pkgdir}/usr/bin/partimaged-gencrt" chmod 644 "${pkgdir}/etc/partimaged/partimagedusers" diff --git a/community/partimage/partimaged b/community/partimage/partimaged deleted file mode 100644 index da810cbb1..000000000 --- a/community/partimage/partimaged +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash -# This file belongs in /etc/rc.d -# -############################################################################### - -#inserting certain functions (like stat_busy) -. /etc/rc.conf -. /etc/rc.d/functions - -PARTIMAGE=/usr/sbin/ - -# Check the file is there and is executable. -[ -x $PARTIMAGE/partimaged ] || exit 0 - -PID=`pidof -o %PPID /usr/sbin/partimaged` - -# See how we were called. -case "$1" in - start) - stat_busy "Starting Partimage Daemon " - if [ -z "$PID" ]; then - /usr/sbin/partimaged -D &>/dev/null - RETVAL=$? #storing the status of the last command to RETVAL - if [ $? -gt 0 ]; then #if the status was other than 0, the command failed - stat_fail - exit 1 - else - add_daemon partimaged - stat_done - fi - else - stat_fail - echo ":: Daemon already started as pid $PID" - exit 1 - fi - ;; - stop) - stat_busy "Stopping Partimage Daemon " - if [ "$PID" != "" ]; then #if PID exists - kill -KILL $PID &>/dev/null - stat_done - if [ $? -gt 0 ]; then - stat_fail - exit 1 - else - RETVAL=$? - rm_daemon partimaged - fi - else - stat_fail - echo ":: Daemon already stopped" - exit 1 - fi - ;; - restart|reload) - $0 stop - $0 start - RETVAL=$? - ;; - *) - echo "Usage: partimaged {start|stop|restart|reload}" - exit 1 -esac -exit $RETVAL diff --git a/community/partimage/partimaged.service b/community/partimage/partimaged.service index 34eb87fd7..baa682981 100644 --- a/community/partimage/partimaged.service +++ b/community/partimage/partimaged.service @@ -4,7 +4,7 @@ After=syslog.target network.target [Service] Type=forking -ExecStart=/usr/sbin/partimaged --daemon +ExecStart=/usr/bin/partimaged --daemon [Install] WantedBy=multi-user.target |