From 055ce375c1a6f203d635f1c18282a5646a844ca8 Mon Sep 17 00:00:00 2001 From: Imran Zaman Date: Wed, 6 Aug 2014 15:48:05 +0300 Subject: [PATCH] Readded packaging directory Change-Id: Ief829acaafc04292c34c0d827974af4091a7a26b Signed-off-by: Imran Zaman --- packaging/gumd-tizen.conf | 132 ++++++++++++++++++++++++++++++++++++++++++++ packaging/gumd.changes | 46 ++++++++++++++++ packaging/gumd.manifest | 5 ++ packaging/gumd.spec | 137 ++++++++++++++++++++++++++++++++++++++++++++++ packaging/libgum.manifest | 5 ++ 5 files changed, 325 insertions(+) create mode 100644 packaging/gumd-tizen.conf create mode 100644 packaging/gumd.changes create mode 100644 packaging/gumd.manifest create mode 100644 packaging/gumd.spec create mode 100644 packaging/libgum.manifest diff --git a/packaging/gumd-tizen.conf b/packaging/gumd-tizen.conf new file mode 100644 index 0000000..4a956c3 --- /dev/null +++ b/packaging/gumd-tizen.conf @@ -0,0 +1,132 @@ +# +# gumd Configuration file. +# + +# +# This group contains top-level settings. +# +[General] + +# Comma separate listed of groups, which every user (other than system user) +# will be added to at the time of user account creation. Default value is: +# '' +#DEFAULT_USR_GROUPS= + +# Comma separate listed of groups, which admin user will be added to at the +# time of user account creation. Default value is: '' +#DEFAULT_ADMIN_GROUPS= + +# Path to passwd file which represents user information. Default is +# /etc/passwd. More information about the file format can be read at the +# manpages for 'passwd'. +# Can be overriden in debug builds by setting UM_PASSWD_FILE +# environment variable. +#PASSWD_FILE=/etc/passwd + +# Path to shadow file which represents user shadowed password information. +# Default is /etc/shadow. More information about the file format can be read +# at the manpages for 'shadow'. +# Can be overriden in debug builds by setting UM_SHADOW_FILE +# environment variable. +#SHADOW_FILE=/etc/shadow + +# Path to group file which represents group information. Default is /etc/group. +# More information about the file format can be read at the manpages for +# 'group'. +# Can be overriden in debug builds by setting UM_GROUP_FILE +# environment variable. +#GROUP_FILE=/etc/group + +# Path to group file which represents shadowed group information. +# Default is /etc/gshadow. More information about the file format can be read +# at the manpages for 'gshadow'. +# Can be overriden in debug builds by setting UM_GSHADOW_FILE +# environment variable. +#GSHADOW_FILE=/etc/gshadow + +# Prefix to be used when creating home directory for the user. For example, +# with prefix '/home', user 'newu' home directory will be created as +# '/home/newu'. Default value is '/home' +# Can be overriden in debug builds by setting UM_HOMEDIR_PREFIX +# environment variable. +#HOME_DIR=/home + +# Path to user shell executable. Default value is '/bin/bash' +#SHELL=/bin/bash + +# Path to skeleton folder. When new users are created, contents of the skel +# folder is copied to user home directory. Default value is '/etc/skel' +# Can be overriden in debug builds by setting UM_SKEL_DIR +# environment variable. +#SKEL_DIR=/etc/skel + +# Minimum value for the automatic uid selection. Default value is: 2000 +#UID_MIN=2000 + +# Maximum value for the automatic uid selection. Default value is: 60000 +#UID_MAX=60000 + +# Minimum value for the automatic uid selection for system user. Default +# value is: 200 +#SYS_UID_MIN=200 + +# Maximum value for the automatic uid selection for system user. Default value +# is: 999 +#SYS_UID_MAX=999 + +# Minimum value for the automatic gid selection. Default value is: 2000 +#GID_MIN=2000 + +# Maximum value for the automatic gid selection. Default value is: 60000 +#GID_MAX=60000 + +# Minimum value for the automatic gid selection for system user. Default value +# is: 200 +#SYS_GID_MIN=200 + +# Maximum value for the automatic gid selection for system user. Default value +# is: 999 +#SYS_GID_MAX=999 + +# Minimum number of days a password may be used. Default value is: 0 +#PASS_MIN_DAYS=0 + +# Maximum number of days allowed between password changes. Default value is: +# 99999 +#PASS_MAX_DAYS=99999 + +# Number of days warning given before a password expires. Default value is: +# 7 +#PASS_WARN_AGE=7 + +# Value used to set the mode of home directories created for new users. +# Default value is: 022 +#UMASK=022 + +# Value used to set the encryption algorithm. Default +# value is: 'SHA512' (other supported options are: 'MD5', 'SHA256', 'DES') +#ENCRYPT_METHOD=SHA512 + +# Value used to set the smack label for newly created files and folders. +SMACK64_NEW_FILES=_ + +# Value used to set the smack label for User files and folders. +SMACK64_USER_FILES=User + +# +# D-Bus related settings. +# +[ObjectTimeouts] + +# Timeout in seconds for the daemon. Daemon will exit after specified idle time. +# If not set (or set to 0), the daemon will not exit. Has no effect if P2P DBus +# is in use. +#DAEMON_TIMEOUT=7 + +# Timeout in seconds for user dbus objects. If not set (or set to 0), the dbus +# objects will persist +#USER_TIMEOUT=5 + +# Timeout in seconds for group dbus objects. If not set (or set to 0), the dbus +# objects will persist +#GROUP_TIMEOUT=5 diff --git a/packaging/gumd.changes b/packaging/gumd.changes new file mode 100644 index 0000000..2c060ca --- /dev/null +++ b/packaging/gumd.changes @@ -0,0 +1,46 @@ +* Tue Aug 05 2014 Imran Zaman +- Release 0.0.3 +- Log only when logging is enabled +- Fixed p2p stream descriptor leak + +* Thu May 22 2014 Imran Zaman +- Renamed gum-example as gum-utils to be used as command line utility + +* Wed May 21 2014 Imran Zaman +- Fixed Bug # TIVI-2988 +- Updated logs + +* Tue May 20 2014 Imran Zaman +- Fixed bug#TIVI-3170 (fixed smack labels for newly created files and folders + as reported in https://bugs.tizen.org/jira/browse/TIVI-3170) + +* Wed Feb 12 2014 Imran Zaman +- Simplified gumd packages for Tizen and SUSE +- Simplified gumd packages +- fix uninstalled pkgconfig files + +* Fri Feb 07 2014 Patrick McCarty fe07066 +- Move the packaging files into the packaging/ directory, since a symlink with + the same name does not work with 'gbs build'. (DEVT-148) + +* Fri Dec 27 2013 Imran Zaman +- Obsoletes gum package as the package is renamed to gumd + +* Mon Dec 23 2013 Imran Zaman +- added test cases for error and dictionary objects +- utilized dictionary functions for get/set key-value pairs +- clean up generated coverage files on make clean +- enable tests by default if coverage is enabled +- exclude external and generated dbus files from code coverage calculation + +* Fri Dec 20 2013 Imran Zaman +- Corrected spec and changes file names + +* Fri Dec 20 2013 Imran Zaman +- Removed dist spec packaging folder from main source tree + +* Fri Dec 20 2013 Imran Zaman +- Release 0.0.1 (First release) + +* Mon Sep 02 2013 Imran Zaman +- Initial RPM packaging diff --git a/packaging/gumd.manifest b/packaging/gumd.manifest new file mode 100644 index 0000000..75b0fa5 --- /dev/null +++ b/packaging/gumd.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/gumd.spec b/packaging/gumd.spec new file mode 100644 index 0000000..ed2718f --- /dev/null +++ b/packaging/gumd.spec @@ -0,0 +1,137 @@ +# define used dbus type [p2p, session, system] +%define dbus_type system +# enable debug features such as control environment variables +# WARNING! do not use for production builds as it will break security +%define debug_build 0 + +Name: gumd +Summary: User management daemon and client library +Version: 0.0.3 +Release: 1 +Group: Security/Accounts +License: LGPL-2.1+ +Source: %{name}-%{version}.tar.gz +URL: https://github.com/01org/gumd +Source1001: %{name}.manifest +Source1002: libgum.manifest +Source1003: %{name}-tizen.conf +Obsoletes: gum +Requires: libgum = %{version}-%{release} +%if %{dbus_type} != "p2p" +Requires: dbus-1 +%endif +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig +BuildRequires: pkgconfig(systemd) +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(gtk-doc) +BuildRequires: pkgconfig(glib-2.0) >= 2.30 +BuildRequires: pkgconfig(gobject-2.0) +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(gio-unix-2.0) +BuildRequires: pkgconfig(gmodule-2.0) + + +%description +%{summary}. + + +%package -n libgum +Summary: User management client library +Group: Security/Accounts + + +%description -n libgum +%{summary}. + + +%package -n libgum-devel +Summary: Development files for user management client library +Group: SDK/Libraries +Requires: libgum = %{version}-%{release} + + +%description -n libgum-devel +%{summary}. + + +%package doc +Summary: Documentation files for %{name} +Group: SDK/Documentation +Requires: libgum = %{version}-%{release} + + +%description doc +%{summary}. + + +%prep +%setup -q -n %{name}-%{version} + + +%build +%if %{debug_build} == 1 +%configure --enable-dbus-type=%{dbus_type} %{_enable_debug} +%else +%configure --enable-dbus-type=%{dbus_type} +%endif + + +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} +%make_install +cp -a %{SOURCE1001} %{buildroot}%{_datadir}/%{name}.manifest +cp -a %{SOURCE1002} %{buildroot}%{_datadir}/libgum.manifest +cp -a %{SOURCE1003} %{buildroot}%{_sysconfdir}/%{name}.conf + + +%post +/sbin/ldconfig +chmod u+s %{_bindir}/%{name} +getent group gumd > /dev/null || /usr/sbin/groupadd -r gumd + + +%postun -p /sbin/ldconfig + + +%files -n libgum +%defattr(-,root,root,-) +%manifest %{_datadir}/libgum.manifest +%{_libdir}/libgum*.so.* +%{_bindir}/gum-utils + + +%files -n libgum-devel +%defattr(-,root,root,-) +%{_includedir}/gum/* +%{_libdir}/libgum*.so +%{_libdir}/pkgconfig/libgum.pc +%if %{dbus_type} != "p2p" +%{_datadir}/dbus-1/interfaces/*UserManagement*.xml +%endif + + +%files +%defattr(-,root,root,-) +%manifest %{_datadir}/%{name}.manifest +%doc AUTHORS COPYING.LIB INSTALL NEWS README +%{_bindir}/%{name} +%config(noreplace) %{_sysconfdir}/%{name}.conf +%if %{dbus_type} == "session" +%dir %{_datadir}/dbus-1/services +%{_datadir}/dbus-1/services/*UserManagement*.service +%else if %{dbus_type} == "system" +%dir %{_datadir}/dbus-1/system-services +%{_datadir}/dbus-1/system-services/*UserManagement*.service +%dir %{_sysconfdir}/dbus-1 +%dir %{_sysconfdir}/dbus-1/system.d +%config(noreplace) %{_sysconfdir}/dbus-1/system.d/gumd-dbus.conf +%endif + + +%files doc +%defattr(-,root,root,-) +%{_datadir}/gtk-doc/html/gumd/* diff --git a/packaging/libgum.manifest b/packaging/libgum.manifest new file mode 100644 index 0000000..58f314b --- /dev/null +++ b/packaging/libgum.manifest @@ -0,0 +1,5 @@ + + + + + -- 2.7.4