Lines 1-6
Link Here
|
1 |
Name: ncpfs |
1 |
Name: ncpfs |
2 |
Version: 2.2.6 |
2 |
Version: 2.2.6 |
3 |
Release: alt4 |
3 |
Release: alt4.1 |
4 |
|
4 |
|
5 |
Summary: Utilities for the %name filesystem, a NetWare client for Linux |
5 |
Summary: Utilities for the %name filesystem, a NetWare client for Linux |
6 |
License: GPL |
6 |
License: GPL |
Lines 8-13
Link Here
|
8 |
|
8 |
|
9 |
Source: ftp://platan.vc.cvut.cz/pub/linux/%name/%name-%version/%name-%version.tar.gz |
9 |
Source: ftp://platan.vc.cvut.cz/pub/linux/%name/%name-%version/%name-%version.tar.gz |
10 |
Source1: mount.ncp |
10 |
Source1: mount.ncp |
|
|
11 |
Source2: ncpfs.control |
11 |
|
12 |
|
12 |
Patch0: %name-2.2.6-alt-makefile.patch |
13 |
Patch0: %name-2.2.6-alt-makefile.patch |
13 |
Patch1: %name-2.2.6-alt-compile.patch |
14 |
Patch1: %name-2.2.6-alt-compile.patch |
Lines 20-30
Link Here
|
20 |
Patch13: ncpfs-2.2.6-getuid.patch |
21 |
Patch13: ncpfs-2.2.6-getuid.patch |
21 |
Patch15: ncpfs-2.2.6-align.patch |
22 |
Patch15: ncpfs-2.2.6-align.patch |
22 |
|
23 |
|
23 |
|
|
|
24 |
Requires: libncp = %version |
24 |
Requires: libncp = %version |
25 |
|
25 |
|
26 |
# Automatically added by buildreq on Wed Oct 08 2003 |
26 |
# Automatically added by buildreq on Wed Oct 08 2003 |
27 |
BuildRequires: libpam-devel glibc-kernheaders |
27 |
BuildRequires: control libpam-devel glibc-kernheaders |
|
|
28 |
|
29 |
%define controlled_binaries ncpmount ncpumount slist |
28 |
|
30 |
|
29 |
%package -n libncp |
31 |
%package -n libncp |
30 |
Summary: Shared library for access the %name filesystem |
32 |
Summary: Shared library for access the %name filesystem |
Lines 85-90
Link Here
|
85 |
%patch1 -p1 |
87 |
%patch1 -p1 |
86 |
%patch2 -p1 |
88 |
%patch2 -p1 |
87 |
%patch3 -p1 |
89 |
%patch3 -p1 |
|
|
90 |
# wow |
88 |
exit |
91 |
exit |
89 |
|
92 |
|
90 |
%patch10 -p1 |
93 |
%patch10 -p1 |
Lines 94-112
Link Here
|
94 |
%patch15 -p1 |
97 |
%patch15 -p1 |
95 |
|
98 |
|
96 |
%build |
99 |
%build |
97 |
%__make distclean |
100 |
make distclean |
98 |
%configure \ |
101 |
%configure \ |
99 |
--enable-pam \ |
102 |
--enable-pam \ |
100 |
--disable-function-sections \ |
103 |
--disable-function-sections \ |
101 |
--disable-mount-v2 |
104 |
--disable-mount-v2 |
102 |
|
105 |
|
103 |
%make_build |
106 |
%make_build |
104 |
%make_build -C ipxdump |
107 |
%make_build -C ipxdump |
105 |
%__cp -p ipxdump/README README.ipxdump |
108 |
cp -p ipxdump/README README.ipxdump |
106 |
%__cp -p contrib/pam/README README.pam_ncp |
109 |
cp -p contrib/pam/README README.pam_ncp |
107 |
|
110 |
|
108 |
%install |
111 |
%install |
109 |
%__mkdir_p %buildroot{/sbin,%_sbindir,/lib/security} |
112 |
mkdir -p %buildroot{/sbin,%_sbindir,/lib/security} |
110 |
%makeinstall install-dev \ |
113 |
%makeinstall install-dev \ |
111 |
libsodir=%buildroot/%_libdir \ |
114 |
libsodir=%buildroot/%_libdir \ |
112 |
libadir=%buildroot/%_libdir \ |
115 |
libadir=%buildroot/%_libdir \ |
Lines 114-136
Link Here
|
114 |
|
117 |
|
115 |
# Move these to permit /usr from NFS |
118 |
# Move these to permit /usr from NFS |
116 |
for f in ipx_{configure,internal_net,interface}; do |
119 |
for f in ipx_{configure,internal_net,interface}; do |
117 |
%__mv "%buildroot/%_bindir/$f" "%buildroot/sbin/$f" |
120 |
mv "%buildroot/%_bindir/$f" "%buildroot/sbin/$f" |
118 |
done |
121 |
done |
119 |
|
122 |
|
120 |
%__install -p -m755 ipxdump/ipx{dump,parse} %buildroot/%_bindir |
123 |
install -p -m755 ipxdump/ipx{dump,parse} %buildroot/%_bindir |
121 |
|
124 |
|
122 |
%__ln_s ..%_bindir/ncpmount %buildroot/sbin/mount.ncp |
125 |
ln -s ..%_bindir/ncpmount %buildroot/sbin/mount.ncp |
123 |
%__ln_s mount.ncp %buildroot/sbin/mount.ncpfs |
126 |
ln -s mount.ncp %buildroot/sbin/mount.ncpfs |
124 |
|
127 |
|
125 |
# These could be SUID root, but it's a security hole. |
128 |
# These could be SUID root, but it's a security hole. |
126 |
%__chmod a-s %buildroot/%_bindir/* |
129 |
# PS: we'll let local sysadmin control that |
|
|
130 |
chmod a-s %buildroot/%_bindir/* |
131 |
|
132 |
for n in %controlled_binaries; do |
133 |
install -pD -m755 %SOURCE2 "%buildroot%_controldir/$n" |
134 |
subst -p "s/@NAME@/$n/" "%buildroot%_controldir/$n" |
135 |
done |
127 |
|
136 |
|
128 |
%find_lang %name |
137 |
%find_lang %name |
129 |
|
138 |
|
|
|
139 |
%pre |
140 |
/usr/sbin/groupadd -r -f netadmin |
141 |
for n in %controlled_binaries; do |
142 |
%pre_control $n |
143 |
done |
144 |
|
145 |
%post |
146 |
for n in %controlled_binaries; do |
147 |
%post_control -s restricted $n |
148 |
done |
149 |
|
130 |
%post -n libncp -p %post_ldconfig |
150 |
%post -n libncp -p %post_ldconfig |
131 |
%postun -n libncp -p %postun_ldconfig |
151 |
%postun -n libncp -p %postun_ldconfig |
132 |
|
152 |
|
133 |
|
|
|
134 |
%files -n libncp |
153 |
%files -n libncp |
135 |
%_libdir/*.so.* |
154 |
%_libdir/*.so.* |
136 |
|
155 |
|
Lines 140-154
Link Here
|
140 |
%_includedir/* |
159 |
%_includedir/* |
141 |
%_man3dir/* |
160 |
%_man3dir/* |
142 |
|
161 |
|
|
|
162 |
# %controlled_binaries aren't %attr(0700,root,root) |
163 |
# since they aren't dangerous being unprivileged |
164 |
# even between unpacking and initializing control mode |
143 |
%files -f %name.lang |
165 |
%files -f %name.lang |
144 |
/sbin/m* |
166 |
/sbin/m* |
145 |
%_sbindir/* |
167 |
%_sbindir/* |
146 |
%_bindir/[nps]* |
168 |
%_bindir/[nps]* |
147 |
/lib/security/* |
169 |
/lib/security/* |
148 |
%_mandir/man1/* |
170 |
%config %_controldir/* |
149 |
%_mandir/man5/* |
171 |
%_man1dir/* |
150 |
%_mandir/man8/n* |
172 |
%_man5dir/* |
151 |
%_mandir/man8/mount.ncp.8* |
173 |
%_man8dir/n* |
|
|
174 |
%_man8dir/mount.ncp.8* |
152 |
%doc BUGS Changes ConfigFile INSTALL FAQ README README.pam_ncp |
175 |
%doc BUGS Changes ConfigFile INSTALL FAQ README README.pam_ncp |
153 |
|
176 |
|
154 |
%files -n ipxutils |
177 |
%files -n ipxutils |
Lines 158-163
Link Here
|
158 |
%doc ipx-1.0/COPYING ipx-1.0/README README.ipxdump |
181 |
%doc ipx-1.0/COPYING ipx-1.0/README README.ipxdump |
159 |
|
182 |
|
160 |
%changelog |
183 |
%changelog |
|
|
184 |
* Sat Dec 16 2006 Michael Shigorin <mike@altlinux.org> 2.2.6-alt4.1 |
185 |
- spec macro abuse (+other minor things) cleanup |
186 |
- added control(8) support (fixes #2275, partially #2289) |
187 |
|
161 |
* Tue Nov 07 2006 Dmitry Lebkov <dlebkov@altlinux.ru> 2.2.6-alt4 |
188 |
* Tue Nov 07 2006 Dmitry Lebkov <dlebkov@altlinux.ru> 2.2.6-alt4 |
162 |
- rebuild with latest ALT Sisyphus |
189 |
- rebuild with latest ALT Sisyphus |
163 |
|
190 |
|