source: server/fedora/specs/accountadm.spec @ 134

Last change on this file since 134 was 134, checked in by jbarnold, 18 years ago
renamed modbash to mbash at Joe's request forcing signup uid and gid to be 102 as required by selinux system
File size: 1.7 KB
RevLine 
[1]1Summary: scripts.mit.edu locker administration system
2Group: Applications/System
[67]3Name: accountadm
[1]4Version: 0.00
[120]5Release: 0
[1]6Vendor: The scripts.mit.edu Team (scripts@mit.edu)
7URL: http://scripts.mit.edu
8License: GPL
9Source: %{name}.tar.gz
10BuildRoot: %{_tmppath}/%(%{__id_u} -n)-%{name}-%{version}-root
11%define debug_package %{nil}
[36]12Prereq: /usr/bin/fs, /usr/bin/pts
[1]13
14%description 
15
16scripts.mit.edu locker administration system
17Contains:
18 - Perl script for checking whether a user is a locker admin <admof>
19 - setuid C program used to start a signup request <signup-scripts-frontend>
20 - Perl script that handles signup requests <signup-scripts-backend>
21See http://scripts.mit.edu/wiki for more information.
22
23%prep
24%setup -q -n %{name}
25
26%build
[36]27./configure --with-fs=/usr/bin/fs --with-pts=/usr/bin/pts
[1]28make
29
30%install
31[ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
[89]32make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr/local
[1]33
34%clean
35[ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
36
37%files
38%defattr(0644, root, root)
[134]39/usr/local/etc/mbashrc
[1]40%defattr(0755, root, root)
[134]41/usr/local/bin/mbash
[125]42/usr/local/bin/admof
43/usr/local/sbin/ssh-admof
[1]44/usr/local/sbin/signup-scripts-backend
45%defattr(4755, signup, signup)
46/usr/local/sbin/signup-scripts-frontend
47
48%pre
[134]49groupadd -g 102 signup
50useradd -u 102 -g signup signup
[1]51
52%post
53cat >>/etc/sudoers <<END
54signup  ALL=(root) NOPASSWD: /usr/sbin/useradd
55signup  ALL=(root) NOPASSWD: /usr/sbin/groupadd
[11]56signup  ALL=(root) NOPASSWD: /usr/sbin/setquota
[1]57END
[11]58chmod 0440 /etc/sudoers
[1]59
60%preun
61touch /etc/sudoers.tmp
62chmod 600 /etc/sudoers.tmp
63grep -v "^signup" /etc/sudoers > /etc/sudoers.tmp
64mv /etc/sudoers.tmp /etc/sudoers
65
66%postun
67userdel -r signup
68
69%changelog
70
71* Sat Sep 30 2006  Jeff Arnold <jbarnold@MIT.EDU> 0.00
72- prerelease
Note: See TracBrowser for help on using the repository browser.