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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# -*-makefile-*-
#
# Copyright (C) 2010 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_POLKIT) += polkit
#
# Paths and names
#
POLKIT_VERSION := 0.96
POLKIT_MD5 := e0a06da501b04ed3bab986a9df5b5aa2
POLKIT := polkit-$(POLKIT_VERSION)
POLKIT_SUFFIX := tar.gz
POLKIT_URL := http://hal.freedesktop.org/releases/$(POLKIT).$(POLKIT_SUFFIX)
POLKIT_SOURCE := $(SRCDIR)/$(POLKIT).$(POLKIT_SUFFIX)
POLKIT_DIR := $(BUILDDIR)/$(POLKIT)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# autoconf
#
POLKIT_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
--enable-shared \
--enable-static \
--disable-ansi \
--disable-verbose-mode \
--disable-man-pages \
--disable-gtk-doc \
--disable-examples \
--disable-introspection \
--with-gnu-ld \
--with-authfw=shadow \
--with-os-type=ptxdist
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/polkit.targetinstall:
@$(call targetinfo)
@$(call install_init, polkit)
@$(call install_fixup, polkit,PRIORITY,optional)
@$(call install_fixup, polkit,SECTION,base)
@$(call install_fixup, polkit,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
@$(call install_fixup, polkit,DESCRIPTION,missing)
# dbus
@$(call install_copy, polkit, 0, 0, 0644, -, \
/etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf)
@$(call install_copy, polkit, 0, 0, 0644, -, \
/usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service)
# config
@$(call install_copy, polkit, 0, 0, 0644, -, \
/etc/polkit-1/localauthority.conf.d/50-localauthority.conf)
@$(call install_copy, polkit, 0, 0, 0644, -, \
/etc/polkit-1/nullbackend.conf.d/50-nullbackend.conf)
@$(call install_copy, polkit, 0, 0, 0644, -, \
/usr/share/polkit-1/actions/org.freedesktop.policykit.policy)
# libs
@$(call install_lib, polkit, 0, 0, 0644, libpolkit-agent-1)
@$(call install_lib, polkit, 0, 0, 0644, libpolkit-backend-1)
@$(call install_lib, polkit, 0, 0, 0644, libpolkit-gobject-1)
@$(call install_copy, polkit, 0, 0, 0644, -, \
/usr/lib/polkit-1/extensions/libnullbackend.so)
@$(call install_copy, polkit, 0, 0, 0644, -, \
/usr/lib/polkit-1/extensions/libpkexec-action-lookup.so)
# binaries
@$(call install_copy, polkit, 0, 0, 0755, -, /usr/bin/pkaction)
@$(call install_copy, polkit, 0, 0, 0755, -, /usr/bin/pkcheck)
@$(call install_copy, polkit, 0, 0, 0755, -, /usr/libexec/polkitd)
# binaries with suid
@$(call install_copy, polkit, 0, 0, 4755, -, /usr/bin/pkexec)
@$(call install_copy, polkit, 0, 0, 4755, -, \
/usr/libexec/polkit-agent-helper-1)
@$(call install_finish, polkit)
@$(call touch)
# vim: syntax=make
|