Пакет libnss-role: 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 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | # This spec is backported to ALTLinux p8 automatically by rpmbph script from etersoft-build-utils. # Name: libnss-role Version: 0.2.9 Release: alt0.M80P.1 Summary: NSS API library and admin tools for roles and privilegies License: GPLv3 URL: http://tartarus.ru/projects/libnss-role Group: System/Libraries Packager: Pavel Shilovsky <piastry@altlinux.ru> Source: %name-%version.tar Requires(pre): chrooted >= 0.3.5-alt1 chrooted-resolv sed Requires(postun): chrooted >= 0.3.5-alt1 sed BuildRequires: glibc-devel scons BuildRequires: libpam-devel %description NSS API library and admin tools for roles and privilegies. %package devel Summary: Header for developing applications managing Roles Group: Development/Other Requires: %name = %version-%release %description devel Headers for developing applications managing Roles throw NSS API library for roles and privilegies. %prep %setup -q %build scons %install scons install DESTDIR=%buildroot LIBDIR=%_libdir LIBSYSDIR=/%_lib mkdir -p %buildroot%_sysconfdir install -m644 role.default %buildroot%_sysconfdir/role %post if [ "$1" = "1" ]; then grep -q '^group:[[:blank:]]*\(.\+[[:blank:]]\+\)*role\($\|[[:blank:]]\)' \ %_sysconfdir/nsswitch.conf || \ sed -i.rpmorig -e 's/^\(group:.\+\)$/\1 role/g' \ %_sysconfdir/nsswitch.conf fi update_chrooted all %postun if [ "$1" = "0" ]; then sed -i -e 's/^group:role/group:/g' \ -e 's/^\(group:\)\(.\+[[:blank:]]*\)*[[:blank:]]\+role\($\|[[:blank:]].*\)$/\1\2\3/g' \ %_sysconfdir/nsswitch.conf fi update_chrooted all %files %config(noreplace) %_sysconfdir/role %_sysconfdir/pam.d/role* /%_lib/libnss_*.so.* %_sbindir/* %_bindir/* %_libdir/*.so.* %_man8dir/* %files devel %_libdir/*.so %_includedir/role %changelog * Sat Jul 14 2018 Vitaly Lipatov <lav@altlinux.ru> 0.2.9-alt0.M80P.1 - backport to ALTLinux p8 (by rpmbph script) * Sat Jul 14 2018 Vitaly Lipatov <lav@altlinux.ru> 0.2.9-alt1 - fix getgrnam_r and getgrgid_r using, increase buffer * Tue May 02 2017 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.2.8-alt3 - Fixed fgetc and realloc usage. * Thu Jul 11 2013 Pavel Shilovsky <piastry@altlinux.org> 0.2.8-alt2 - Merge git.alt branch * Mon Jul 01 2013 Pavel Shilovsky <piastry@altlinux.org> 0.2.8-alt1 - Skip blank lines in the config file * Sat Nov 19 2011 Evgeny Sinelnikov <sin@altlinux.ru> 0.2.7-alt4 - Fix devel-file-in-non-devel-package rpmlint violation - Add comments to configuration due rpmlint violation * Sat Feb 26 2011 Pavel Shilovsky <piastry@altlinux.org> 0.2.7-alt3 - Replace /etc/nsswitch.conf with %_sysconfigdir/nsswitch.conf * Sat Jan 15 2011 Pavel Shilovsky <piastry@altlinux.org> 0.2.7-alt2 - Fix module version * Mon Nov 29 2010 Pavel Shilovsky <piastry@altlinux.org> 0.2.7-alt1 - Add comment support * Wed Nov 03 2010 Pavel Shilovsky <piastry@altlinux.org> 0.2.6-alt2 - Fix version * Tue Nov 02 2010 Pavel Shilovsky <piastry@altlinux.org> 0.2.6-alt1 - Bug fixing * Sat Oct 24 2010 Pavel Shilovsky <piastry@altlinux.org> 0.2.5-alt1 - Add new parsing rules - Update mans - Code style and bug fixing - Delete cpp implementation * Mon Jul 19 2010 Pavel Shilovsky <piastry@altlinux.org> 0.2.4-alt1 - Fixed librole_reading() error handling - Set unlimit group len at parse_line() - rolelst prints group names instead of gids * Wed Jan 20 2010 Pavel Shilovsky <piastry@altlinux.org> 0.2.3-alt1 - Fixed bugs in pam_check and parser - Add error messages * Wed Nov 11 2009 Pavel Shilovsky <piastry@altlinux.org> 0.2.2-alt2 - Fixed passing sisyphus-check * Wed Nov 11 2009 Pavel Shilovsky <piastry@altlinux.org> 0.2.2-alt1 - Migrated to c-language utilites - Bugs' fixing * Wed Sep 30 2009 Pavel Shilovsky <piastry@altlinux.org> 0.2.1-alt1 - Code refactoring and bug's fixing. * Fri Sep 11 2009 Pavel Shilovsky <piastry@altlinux.org> 0.2.0-alt1 - Implemented module on C language - Added work with gids * Sat Jun 27 2009 Evgeny Sinelnikov <sin@altlinux.ru> 0.1.6-alt3 - Build with boost-1.39.0 - Fixed bug with local user and group reading - Improve error handling * Thu Feb 26 2009 Evgeny Sinelnikov <sin@altlinux.ru> 0.1.6-alt2 - Remove post_ldconfig and postun_ldconfig - Fixed potential problem in sections post and postun (#18984) - Adjusted project URL * Thu Dec 11 2008 Evgeny Sinelnikov <sin@altlinux.ru> 0.1.6-alt1 - Fixed install directory for system tools - Fixed manuals - Improved error handling * Fri Nov 14 2008 Evgeny Sinelnikov <sin@altlinux.ru> 0.1.5-alt1 - Replace include files * Fri Nov 14 2008 Evgeny Sinelnikov <sin@altlinux.ru> 0.1.4-alt1 - Fixed helps for utilities - Added utilities manuals - Change project URL * Wed Oct 29 2008 Evgeny Sinelnikov <sin@altlinux.ru> 0.1.3-alt4 - Fixed libdir installation path for x86_64 * Wed Oct 29 2008 Evgeny Sinelnikov <sin@altlinux.ru> 0.1.3-alt3 - Fixed build with gcc4.3 * Sun Sep 28 2008 Evgeny Sinelnikov <sin@altlinux.ru> 0.1.3-alt2 - Fixed nsswitch.conf update scripts - Prepared for i18n * Wed Aug 27 2008 Evgeny Sinelnikov <sin@altlinux.ru> 0.1.3-alt1 - Added pam support - Started utils i18n support - Added class UserReader * Fri Jul 11 2008 Evgeny Sinelnikov <sin@altlinux.ru> 0.1.2-alt1 - Improved error handling * Fri Jul 04 2008 Evgeny Sinelnikov <sin@altlinux.ru> 0.1.1-alt1 - Updated utilities: + Fixed roledel + Added rolelst * Thu Jun 26 2008 Evgeny Sinelnikov <sin@altlinux.ru> 0.1-alt1 - Initial build for ALT |