#
# spec file for package SUNWconsolekit
#
# includes module(s): ConsoleKit
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
#
# Option to decide whether or not build library pam_ck_connector,
# which implements pam_sm_open_session(3PAM) and pam_sm_close_session(3PAM).
# By default, we don't build it.
#
# Note: To enable this pam module, you have to manually add
# like this.
# "login session required pam_ck_connector.so debug"
#
%use ck = ConsoleKit.spec
Version: %{ck.version}
SUNW_BaseDir: %{_basedir}
License: %{ck.license}
SUNW_BaseDir: /
SUNW_BaseDir: %{_basedir}
%if %build_pam_module
SUNW_BaseDir: %{_basedir}
%prep
# FIXME: remove -D_POSIX_PTHREAD_SEMANTICS when not use CBE 1.6x
export CFLAGS="%optflags -D_POSIX_PTHREAD_SEMANTICS"
export RPM_OPT_FLAGS="$CFLAGS"
export LDFLAGS="%_ldflags"
# Port the man8 file to SGML and add back the below "rm".
#rm -rf $RPM_BUILD_ROOT%{_mandir}
# These programs are intended to be used if you want ConsoleKit to be
# install these for now.
#
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Presence of this temp file will tell postinstall script
# that the consolekit service is already installed, in which case
# the current service state will be preserved, be it enabled
# or disabled.
fi
exit 0
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Preinstall script will create this file if consolekit service was
# already installed, in which case we preserve current service state,
# be it enabled or disabled.
else
# enable consolekit:
# - PKG_INSTALL_ROOT is / or empty when installing onto a live system
# and we can invoke svcadm directly;
# - otherwise it's upgrade, so we append to the upgrade script
if [ "${PKG_INSTALL_ROOT:-/}" = "/" ]; then
fi
else
if [ \`/sbin/zonename\` = global ]; then
/usr/sbin/svcadm enable -r svc:/system/consolekit:default
fi
EOF
fi
fi
exit 0
%{_bindir}/*
%{_sbindir}/*
# SVC method file
%{_includedir}/*
%if %build_pam_module
VT.
header paths.h on Solaris.
* Thu Feb 07 2008 - Brian.Cameron@sun.com
- Add /var/log/ConsoleKit/history file to packaging.
* Thu Jan 31 2008 - Brian.Cameron@sun.com
- Bump to 0.2.7. Remove two upstream patches added on January 25,
2007.
* Fri Jan 25 2008 - Brian.Cameron@sun.com
- Bump to 0.2.6. Rework patches. Add patch ConsoleKit-02-RBAC.diff
to make ConsoleKit use RBAC instead of PolicyKit on Solaris.
Patch ConsoleKit-03-fixbugs.diff fixes some bugs I found.
* Tue Sep 18 2007 - Brian.Cameron@sun.com
- Bump to 0.2.3. Remove upstream ConsoleKit-01-head.diff
patch and add ConsoleKit-02-fixsolaris.diff to fix some
issues building ConsoleKit when VT is not present.
* Mon Aug 16 2007 - Brian.Cameron@sun.com
- Created.