2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2015 Alexander Pyhalov
13 # Copyright 2024 Andreas Wacknitz
16 BUILD_STYLE
= configure
17 # 32 bit needs to be build first because we remove the contents of $(USRLIBEXECDIR) in COMPONENT_POST_INSTALL_ACTION.32
20 include ..
/..
/..
/make-rules
/shared-macros.mk
22 COMPONENT_NAME
= ConsoleKit
23 COMPONENT_VERSION
= 0.4.6
25 COMPONENT_PROJECT_URL
= https
://www.freedesktop.org
/wiki
/Software
/ConsoleKit
26 COMPONENT_SUMMARY
= Framework for tracking users
, login sessions
, and seats
27 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
28 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
29 COMPONENT_ARCHIVE_HASH
= sha256
:b41d17e06f80059589fbeefe96ad07bcc564c49e65516da1caf975146475565c
30 COMPONENT_ARCHIVE_URL
= https
://www.freedesktop.org
/software
/ConsoleKit
/dist/$(COMPONENT_ARCHIVE
)
31 COMPONENT_FMRI
= library
/xdg
/consolekit
32 COMPONENT_CLASSIFICATION
=Desktop
(GNOME
)/Sessions
33 COMPONENT_LICENSE
= GPLv2
34 COMPONENT_LICENSE_FILE
= COPYING
36 TEST_TARGET
= $(NO_TESTS
)
37 include $(WS_MAKE_RULES
)/common.mk
41 COMPONENT_PREP_ACTION
= ( \
43 glib-gettextize
-f
&& \
44 libtoolize
--copy
--force && \
46 automake
-c
-f
-a
&& \
47 PATH
="$(PATH)" autoconf
)
49 # Missing files in build dir without this.
50 COMPONENT_PRE_CONFIGURE_ACTION
= ( $(CLONEY
) $(SOURCE_DIR
) $(@D
) )
52 # Drop 32-bit binaries
53 COMPONENT_POST_INSTALL_ACTION
+= $(RM
) -r
$(PROTOUSRBINDIR32
) ;
54 COMPONENT_POST_INSTALL_ACTION
+= $(RM
) -r
$(PROTOUSRSBINDIR32
) ;
55 COMPONENT_POST_INSTALL_ACTION
.32 += $(RM
) -r
$(PROTOUSRLIBEXECDIR32
) ;
57 MACHBITS
=$(patsubst /i86
,,/$(MACH
$(BITS
)))
59 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
60 # Use the following if libexec and libexec/amd64 should be used for 32 and 64 bit.
61 #CONFIGURE_OPTIONS += --libexecdir=/usr/libexec$(MACHBITS)
62 CONFIGURE_OPTIONS
+= --libexecdir
=/usr
/libexec
63 CONFIGURE_OPTIONS
+= --localstatedir
=$(VARDIR
)
64 CONFIGURE_OPTIONS
+= --enable-pam-module
65 CONFIGURE_OPTIONS
+= --with-pam-module-dir
=/usr
/lib
/security
$(MACHBITS
)
66 CONFIGURE_OPTIONS
+= --enable-rbac-shutdown
=solaris.system.shutdown
68 # Manually added build dependencies
69 REQUIRED_PACKAGES
+= x11
/header
/x11-protocols
70 REQUIRED_PACKAGES
+= x11
/library
/libpthread-stubs
72 # Auto-generated dependencies
73 REQUIRED_PACKAGES
+= SUNWcs
74 REQUIRED_PACKAGES
+= library
/glib2
75 REQUIRED_PACKAGES
+= library
/zlib
76 REQUIRED_PACKAGES
+= shell/ksh93
77 REQUIRED_PACKAGES
+= system
/library
78 REQUIRED_PACKAGES
+= system
/library
/dbus
79 REQUIRED_PACKAGES
+= system
/library
/libdbus
80 REQUIRED_PACKAGES
+= system
/library
/libdbus-glib
81 REQUIRED_PACKAGES
+= x11
/library
/libx11