Package cgmanager: Specfile
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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | Name: cgmanager Version: 0.41 Release: alt1 Summary: Linux cgroup manager License: %lgpl2plus Group: System/Base URL: http://cgmanager.linuxcontainers.org # git://github.com/cgmanager/cgmanager Source: %name-%version.tar Source1: %name.init Source2: cgproxy.init Patch: %name-%version-%release.patch BuildRequires(pre): rpm-build-licenses BuildRequires(pre): libpam-devel BuildRequires: libdbus-devel libnih-dbus-devel help2man Requires: libdbus %description CGManager is a central privileged daemon that manages all your cgroups for you through a simple DBus API. It's designed to work with nested LXC containers as well as accepting unprivileged requests including resolving user namespaces UIDs/GIDs. %package -n lib%name Summary: Shared library files for %name Group: System/Libraries %description -n lib%name This package contains libraries for running %name applications. %package -n lib%name-devel Summary: Development files for lib%name Group: Development/C Requires: lib%name = %version-%release %description -n lib%name-devel This package contains header files and library needed for development with lib%name. %set_pam_name pam_cgm %package -n %pam_name Summary: %summary Group: System/Base %description -n %pam_name %summary This package provides a Pluggable Authentication Module (PAM) %pam_name When a user logs in, this pam module will create cgroups which the user may administer, for any controllers listed on the command line or, if none are listed, then all available controllers. %prep %setup %patch -p1 # Fix systemd units path sed -i 's;^SYSTEMD_UNIT_DIR = .*$;SYSTEMD_UNIT_DIR = %systemd_unitdir;' config/init/systemd/Makefile.am %build %autoreconf %configure \ --disable-static \ --with-distro=alt \ --with-init-script=systemd %make_build %install %makeinstall_std install -pDm755 %SOURCE1 %buildroot%_initdir/%name install -pDm755 %SOURCE2 %buildroot%_initdir/cgproxy %post # cgmanager shouldn't be run on container if ! service %name status >/dev/null 2>&1 && cgproxy --check-master; then %post_service cgproxy else %post_service %name fi %preun %preun_service %name %preun_service cgproxy %files %_bindir/* %_sbindir/* %_initdir/* %_man1dir/*.1.* %_man8dir/*.8.* %_datadir/%name/ %systemd_unitdir/cgmanager.service %systemd_unitdir/cgproxy.service %dir %_libexecdir/%name %_libexecdir/%name/* %files -n lib%name %_libdir/*.so.* %files -n lib%name-devel %_includedir/%name/ %_libdir/*.so %_libdir/pkgconfig/* %files -n %pam_name %doc AUTHORS COPYING %_pam_modules_dir/* %changelog * Fri Mar 11 2016 Denis Pynkin <dans@altlinux.org> 0.41-alt1 - Updated to 0.41 * Mon Feb 29 2016 Denis Pynkin <dans@altlinux.org> 0.39-alt1 - Updated to 0.39. * Mon Jan 12 2015 Mikhail Efremov <sem@altlinux.org> 0.35-alt1 - Updated to 0.35. * Wed Oct 15 2014 Mikhail Efremov <sem@altlinux.org> 0.33-alt1 - Patches from upstream git: + check "enabled" column when parsing /proc/cgroups. + do_move_pid_main: don't break out of while loop on error; return error after. - Use post_service/preun_service. - cgmanager.init: Don't run cgproxy --check-master if lockfile exists. - Drop obsoleted patches. - Updated to 0.33. * Wed Oct 01 2014 Mikhail Efremov <sem@altlinux.org> 0.32-alt1 - Add patches from Debian. - Add init scripts. - Fix libcgmanager linking. - Initial build. |