1 | %define debug_package %{nil}
|
---|
2 | # Disable compression completely
|
---|
3 | %define _strip_no_compress 1
|
---|
4 | %global exename klUsrMgr.EXE
|
---|
5 |
|
---|
6 | Summary: kLIBC User Management
|
---|
7 | Name: klusrmgr
|
---|
8 | Version: 1.2.1
|
---|
9 | Release: 1%{?dist}
|
---|
10 | License: proprietary
|
---|
11 | Group: Applications/System
|
---|
12 | URL: http://www.netlabs.org/vxapps
|
---|
13 | Vendor: bww bitwise works GmbH
|
---|
14 | Source: %{name}-%{version}.zip
|
---|
15 | BuildRoot: %_tmppath/%name-%version-%release-root
|
---|
16 | Requires: os2-rpm >= 1-2
|
---|
17 | Requires: rxcrypt >= 1.0.0
|
---|
18 | Requires: bww-resources-rpm >= 1.1.0
|
---|
19 | Obsoletes: kLIBCum <= 1.0.10
|
---|
20 |
|
---|
21 | %description
|
---|
22 | The purpose of this utility is to manage kLIBC users and groups.
|
---|
23 | These files are found in %UNIXROOT%\etc and have the following names
|
---|
24 | - master.passwd
|
---|
25 | - group
|
---|
26 |
|
---|
27 | These files are syntactically properly maintained and compiled into
|
---|
28 | pwd.db and spwd.db using the pwdmkdb.exe utility.
|
---|
29 |
|
---|
30 |
|
---|
31 | %prep
|
---|
32 | %setup -n "%{name}-%{version}" -Tc
|
---|
33 | unzip -qj %{_sourcedir}/%{name}-%{version}.zip
|
---|
34 |
|
---|
35 |
|
---|
36 | %build
|
---|
37 | rexx2vio usermod.cmd usermod.exe
|
---|
38 | rexx2vio groupmod.cmd groupmod.exe
|
---|
39 |
|
---|
40 |
|
---|
41 | %install
|
---|
42 | for f in useradd userdel userren groupadd groupdel *.exe ; do
|
---|
43 | install -p -m0755 -D $f $RPM_BUILD_ROOT%{_bindir}/$f
|
---|
44 | done
|
---|
45 |
|
---|
46 | # don't change the case of the klusrmgr.exe name
|
---|
47 | install -p -m0755 -D %{name}.EXE $RPM_BUILD_ROOT%{_bindir}/%{exename}
|
---|
48 |
|
---|
49 | for f in *.msg ; do
|
---|
50 | install -p -m0644 -D $f $RPM_BUILD_ROOT%{_datadir}/os2/lang/$f
|
---|
51 | done
|
---|
52 |
|
---|
53 |
|
---|
54 | %clean
|
---|
55 | rm -rf "$RPM_BUILD_ROOT"
|
---|
56 |
|
---|
57 |
|
---|
58 | %post
|
---|
59 | if [ "$1" -ge 1 ]; then # (upon update)
|
---|
60 | %wps_object_delete_all
|
---|
61 | %{_rpmconfigdir_os2}/wpi4rpm del %{vendor}/%{name}/binaries %{version}-%{release}
|
---|
62 | fi
|
---|
63 | %global title %{summary}
|
---|
64 | %bww_folder -t %{title}
|
---|
65 | %bww_app -f %{_bindir}/%{exename} -t %{title}
|
---|
66 | %bww_readme -f %{_defaultdocdir}/%{name}-%{version}/readme.txt
|
---|
67 | %bww_app_shadow
|
---|
68 | %bww_app_shadow -d WP_CONFIG
|
---|
69 | %{_rpmconfigdir_os2}/wpi4rpm add %{vendor}/%{name}/binaries %{version}-%{release}
|
---|
70 | cmd /c klusrmgr.exe -init
|
---|
71 |
|
---|
72 |
|
---|
73 | %postun
|
---|
74 | if [ "$1" -eq 0 ]; then # (upon removal)
|
---|
75 | %wps_object_delete_all
|
---|
76 | %{_rpmconfigdir_os2}/wpi4rpm del %{vendor}/%{name}/binaries %{version}-%{release}
|
---|
77 | fi
|
---|
78 |
|
---|
79 |
|
---|
80 | %files
|
---|
81 | %defattr(-,root,root,-)
|
---|
82 | %doc readme.txt
|
---|
83 | %_bindir/*
|
---|
84 | %_datadir/os2/lang/*.msg
|
---|
85 |
|
---|
86 |
|
---|
87 | %changelog
|
---|
88 | * Tue Sep 04 2018 hb <herwig.bauernfeind@bitwiseworks.com> 1.2.1-1
|
---|
89 | - useradd and groupmod are compiled into .exe
|
---|
90 | - standardized error messages in usermod and groupmod
|
---|
91 |
|
---|
92 | * Thu Aug 09 2018 hb <herwig.bauernfeind@bitwiseworks.com> 1.2.0-1
|
---|
93 | - add useradd and friend shell scripts as wrapper to usermod/groupmod (Silvan)
|
---|
94 | - changed usermod and groupmod to accept a lot more options
|
---|
95 |
|
---|
96 | * Mon Jul 30 2018 hb <herwig.bauernfeind@bitwiseworks.com> 1.1.6-1
|
---|
97 | - add usermod and groupmod commands from Samba
|
---|
98 |
|
---|
99 | * Wed Jun 13 2018 hb <herwig.bauernfeind@bitwiseworks.com> 1.1.5-1
|
---|
100 | - disable potentially dangeraous operations in case Samba User Manager is found
|
---|
101 |
|
---|
102 | * Fri Jun 8 2018 hb <herwig.bauernfeind@bitwiseworks.com> 1.1.4-3
|
---|
103 | - make klusrmgr -init workable from rpm (fix by Silvan Scherrer)
|
---|
104 |
|
---|
105 | * Sun May 27 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.1.4-2
|
---|
106 | - fix the location of wpi4rpm
|
---|
107 |
|
---|
108 | * Tue Feb 06 2018 hb <herwig.bauernfeind@bitwiseworks.com> 1.1.4-1
|
---|
109 | - Fix: Missing msgs from 1.1.x sometimes did not work
|
---|
110 | - Fix: Tab order on user page
|
---|
111 | - Fix: Verify if passwords match also for new users
|
---|
112 |
|
---|
113 | * Tue Dec 12 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.1.3-2
|
---|
114 | - fix buglet in package creation
|
---|
115 |
|
---|
116 | * Tue Dec 12 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.1.3-1
|
---|
117 | - fix -init switch and repair structural bugs and omission introduced by 1.1.x
|
---|
118 |
|
---|
119 | * Thu Jun 08 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.1.2-1
|
---|
120 | - add root group with GID 0 as a default group
|
---|
121 | - fix several small bugs
|
---|
122 |
|
---|
123 | * Mon Apr 24 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.1.1-1
|
---|
124 | - add -init switch and ensure default files are created upon installation
|
---|
125 |
|
---|
126 | * Sun Feb 05 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.1.0-3
|
---|
127 | - put RxCrypt.DLL into a separate package
|
---|
128 |
|
---|
129 | * Thu Jan 26 2017 hb <herwig.bauernfeind@bitwiseworks.com> 1.1.0-2
|
---|
130 | - renamed to klusrmgr
|
---|
131 | - added support for shell
|
---|
132 | - completely rewrote user properties dialogue
|
---|
133 |
|
---|
134 | * Fri Nov 18 2016 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.10
|
---|
135 | - fix Ticket #7
|
---|
136 | - fix minor bugs in user properties page
|
---|
137 | - rework and simplify join/leave dialogue
|
---|
138 |
|
---|
139 | * Thu Nov 17 2016 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.9-2
|
---|
140 | - fix minor bug
|
---|
141 |
|
---|
142 | * Thu Nov 17 2016 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.9
|
---|
143 | - Limited group editing
|
---|
144 | - bigger buttons, new icons
|
---|
145 | - fix Ticket #125 (Unix ports)
|
---|
146 | - fix new user bug
|
---|
147 | - add ignore root shell error warning
|
---|
148 | - make debug stick across sessions
|
---|
149 |
|
---|
150 | * Tue Nov 15 2016 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.8
|
---|
151 | - add functionality to add/remove multiple user from/to groups
|
---|
152 | - double click on user open user properties to edit
|
---|
153 |
|
---|
154 | * Fri Nov 11 2016 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.7-2
|
---|
155 | - fix minor bug
|
---|
156 |
|
---|
157 | * Fri Nov 11 2016 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.7-1
|
---|
158 | - Add smbusers.exe check, fix missing NLV translations,
|
---|
159 | - add NL, IT and RU language files
|
---|
160 |
|
---|
161 | * Thu Nov 10 2016 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.6-1
|
---|
162 | - Add "Remove user from group" functionality, fix missing NLV translations
|
---|
163 |
|
---|
164 | * Fri Nov 04 2016 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.5-1
|
---|
165 | - Add some hints, fix wrong hints
|
---|
166 |
|
---|
167 | * Thu Oct 27 2016 hb <herwig.bauernfeind@bitwiseworks.com> 1.0.4-1
|
---|
168 | - bigger buttons, shortened strings for EN, ES
|
---|
169 |
|
---|
170 | * Mon Oct 24 2016 scs <silvan.scherrer@bitwiseworks.com> 1.0.3-1
|
---|
171 | - first public version
|
---|
172 |
|
---|