summaryrefslogtreecommitdiff
path: root/packages/ivman/ivman_0.6.14.bb
blob: 8ee4a020490247c8eaa37b7d572adf3cbc76d5c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
DESCRIPTION = "Daemon to mount/unmount devices, based on info from HAL"
HOMEPAGE = "http://ivman.sf.net"
LICENSE = "GPLv2"
PR = "r0"

DEPENDS = "hal libxml2"
RDEPENDS = "hal pmount-hal"

SRC_URI = "${SOURCEFORGE_MIRROR}/ivman/${P}.tar.bz2 \
           file://ivman-0.6-hotpluggable.patch;patch=1 \
           file://ivman-launch.patch;patch=1 "

inherit autotools

# Add user ivman into group plugdev
pkg_postinst_${PN} () {
        # can't do this offline
        if [ "x$D" != "x" ]; then
                exit 1
        fi

        grep "^ivman:" /etc/passwd > /dev/null || \
             adduser --disabled-password --system --home /dev/null \
                     --no-create-home --ingroup plugdev -s /bin/false \
                     -g "IVMAN" ivman
        /etc/init.d/populate-volatile.sh update
}

pkg_postrm_${PN} () {
        deluser ivman || true
}
DESCRIPTION = "Daemon to mount/unmount devices, based on info from HAL"
HOMEPAGE = "http://ivman.sf.net"
LICENSE = "GPLv2"
PR = "r0"

DEPENDS = "hal libxml2"
RDEPENDS = "hal pmount-hal"

SRC_URI = "${SOURCEFORGE_MIRROR}/ivman/${P}.tar.bz2 \
           file://ivman-0.6-hotpluggable.patch;patch=1 \
           file://ivman-launch.patch;patch=1 "

inherit autotools

# Add user ivman into group plugdev
pkg_postinst_${PN} () {
        # can't do this offline
        if [ "x$D" != "x" ]; then
                exit 1
        fi

        grep "^ivman:" /etc/passwd > /dev/null || \
             adduser --disabled-password --system --home /dev/null \
                     --no-create-home --ingroup plugdev -s /bin/false \
                     -g "IVMAN" ivman
        /etc/init.d/populate-volatile.sh update
}

pkg_postrm_${PN} () {
        deluser ivman || true
}