]> arthur.barton.de Git - netatalk.git/blob - distrib/rpm/netatalk-asun.spec.old
Enhanced machine type
[netatalk.git] / distrib / rpm / netatalk-asun.spec.old
1 Summary: AppleTalk networking programs
2 Name: netatalk
3 Version: 1.4b2+asun2.1.4
4 Release: pre39
5 Packager: iNOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
6 Copyright: BSD
7 Group: Networking
8 Source0: ftp://ftp.cobaltnet.com/pub/users/asun/testing/pre-asun2.1.4-36.tar.gz
9 Patch0: netatalk-asun.makefile.patch
10 Requires: pam >= 0.56
11 BuildRoot: /var/tmp/atalk
12
13 %description
14 This package enables Linux to talk to Macintosh computers via the
15 AppleTalk networking protocol. It includes a daemon to allow Linux
16 to act as a file server over AppleTalk or IP for Mac's.
17
18 %package devel
19 Summary: Headers and static libraries for Appletalk development
20 Group: Development/Libraries
21
22 %description devel
23 This packge contains the header files, and static libraries for building
24 Appletalk networking programs.
25
26 %prep
27 %setup
28 %patch0 -p1
29
30 %build
31 make OPTOPTS="$RPM_OPT_FLAGS -fomit-frame-pointer -fsigned-char" OSVERSION=2.0
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 mkdir -p $RPM_BUILD_ROOT/etc/atalk
36 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
37 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
38 for i in 0 1 2 3 4 5 6; do
39         mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc$i.d
40 done
41 mkdir -p $RPM_BUILD_ROOT/usr/lib/atalk
42
43 make install INSTALL_PREFIX=$RPM_BUILD_ROOT
44
45 for i in aecho getzones megatron nbplkup nbprgstr nbpunrgstr pap \
46         papstatus psorder; do
47         strip $RPM_BUILD_ROOT/usr/bin/$i
48 done
49 for i in afpd atalkd psf psa papd; do
50         strip $RPM_BUILD_ROOT/usr/sbin/$i
51 done
52
53 install -m644 config/AppleVolumes.system $RPM_BUILD_ROOT/etc/atalk/AppleVolumes.system
54 install -m644 config/AppleVolumes.default $RPM_BUILD_ROOT/etc/atalk/AppleVolumes.default
55 install -m644 config/atalkd.conf $RPM_BUILD_ROOT/etc/atalk/atalkd.conf
56 install -m644 config/papd.conf $RPM_BUILD_ROOT/etc/atalk/papd.conf
57
58 # This is not necessary because chkconfig will make the links.
59 for i in 0 1 2 6; do
60         ln -sf ../init.d/atalk $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/K35atalk
61 done
62 for i in 3 4 5; do
63         ln -sf ../init.d/atalk $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/S91atalk
64 done
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post
70 /sbin/chkconfig --add atalk
71 ldconfig
72 # Do only for the first install
73 if [ "$1" = 1 ] ; then
74   # Add the ddp lines to /etc/services
75   if (grep '[0-9][0-9]*/ddp' /etc/services >/dev/null); then
76     cat <<'_EOD1_' >&2
77 warning: The DDP services appear to be present in /etc/services.
78 warning: Please check them against services.atalk in the documentation.
79 _EOD1_
80     true
81   else
82     cat <<'_EOD2_' >>/etc/services
83 # start of DDP services
84 #
85 # Everything between the 'start of DDP services' and 'end of DDP services'
86 # lines will be automatically deleted when the netatalk package is removed.
87 #
88 rtmp            1/ddp           # Routing Table Maintenance Protocol
89 nbp             2/ddp           # Name Binding Protocol
90 echo            4/ddp           # AppleTalk Echo Protocol
91 zip             6/ddp           # Zone Information Protocol
92
93 afpovertcp      548/tcp         # AFP over TCP
94 afpovertcp      548/udp
95 # end of DDP services
96 _EOD2_
97   fi
98 fi
99
100 %postun
101 # Do only for the last un-install
102 if [ "$1" = 0 ] ; then
103   /sbin/chkconfig --del atalk
104   # remove the ddp lines from /etc/services
105   if (grep '^# start of DDP services$' /etc/services >/dev/null && \
106       grep '^# end of DDP services$' /etc/services >/dev/null ); then
107     sed -e '/^# start of DDP services$/,/^# end of DDP services$/d' \
108         </etc/services >/tmp/services.tmp$$
109     cat /tmp/services.tmp$$ >/etc/services
110     rm /tmp/services.tmp$$
111   else
112     cat <<'_EOD3_' >&2
113 warning: Unable to find the lines `# start of DDP services' and
114 warning: `# end of DDP services' in the file /etc/services.
115 warning: You should remove the DDP services from /etc/service manually.
116 _EOD3_
117   fi
118 fi
119
120 %files
121 %doc BUGS CHANGES CONTRIBUTORS COPYRIGHT ChangeLog INSTALL/ README* TODO VERSION contrib/ services.atalk
122 %dir /etc/atalk
123 %config /etc/atalk/AppleVolumes.default
124 %config /etc/atalk/AppleVolumes.system
125 %config /etc/atalk/netatalk.conf
126 %config /etc/atalk/afpd.conf
127 %config /etc/atalk/atalkd.conf
128 %config /etc/atalk/papd.conf
129 %config /etc/rc.d/init.d/atalk
130 %config /etc/pam.d/netatalk
131 /etc/rc.d/rc0.d/K35atalk
132 /etc/rc.d/rc1.d/K35atalk
133 /etc/rc.d/rc2.d/K35atalk
134 /etc/rc.d/rc3.d/S91atalk
135 /etc/rc.d/rc4.d/S91atalk
136 /etc/rc.d/rc5.d/S91atalk
137 /etc/rc.d/rc6.d/K35atalk
138 /usr/sbin/afpd
139 /usr/sbin/atalkd
140 /usr/sbin/papd
141 /usr/sbin/psa
142 /usr/sbin/etc2ps
143 /usr/sbin/psf
144 /usr/bin/adv1tov2
145 /usr/bin/aecho
146 /usr/bin/afppasswd
147 /usr/bin/binheader
148 /usr/bin/getzones
149 /usr/bin/hqx2bin
150 /usr/bin/macbinary
151 /usr/bin/megatron
152 /usr/bin/nadheader
153 /usr/bin/nbplkup
154 /usr/bin/nbprgstr
155 /usr/bin/nbpunrgstr
156 /usr/bin/pap
157 /usr/bin/papstatus
158 /usr/bin/psorder
159 /usr/bin/single2bin
160 /usr/bin/unbin
161 /usr/bin/unhex
162 /usr/bin/unsingle
163 %dir /usr/lib/atalk
164 /usr/lib/atalk/filters/
165 /usr/lib/atalk/nls/
166 /usr/lib/atalk/pagecount.ps
167 /usr/lib/atalk/uams/
168 /usr/man/man1/aecho.1
169 /usr/man/man1/getzones.1
170 /usr/man/man1/hqx2bin.1
171 /usr/man/man1/macbinary.1
172 /usr/man/man1/megatron.1
173 /usr/man/man1/nbp.1
174 /usr/man/man1/nbplkup.1
175 /usr/man/man1/nbprgstr.1
176 /usr/man/man1/pap.1
177 /usr/man/man1/papstatus.1
178 /usr/man/man1/psorder.1
179 /usr/man/man1/single2bin.1
180 /usr/man/man1/unbin.1
181 /usr/man/man1/unhex.1
182 /usr/man/man1/unsingle.1
183 /usr/man/man3/atalk_aton.3
184 /usr/man/man3/nbp_name.3
185 /usr/man/man4/atalk.4
186 /usr/man/man8/afpd.8
187 /usr/man/man8/atalkd.8
188 /usr/man/man8/papd.8
189 /usr/man/man8/psf.8
190
191 %files devel
192 /usr/lib/libatalk.a
193 /usr/lib/libatalk_p.a
194 /usr/include/atalk/
195 /usr/include/netatalk/
196
197 %changelog
198 * Thu Jul 22 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
199 - /etc/atalk/netatalk.config -> /etc/atalk/netatalk.conf
200   Many parts of patch are merged into the original source code.
201 * Tue Jul 13 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
202 - AppleVolumes.system is merged into the original source code.
203   /etc/atalk/config -> /etc/atalk/netatalk.config.
204   Merge original rc.atalk.redhat and /etc/rc.d/init.d/atalk.
205   Remove last sample line of patched afpd.conf.
206 * Fri Jul 9 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
207 - [pre-asun2.1.4-30]
208 * Sun Jun 20 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
209 - [pre-asun2.1.4-28]
210 * Thu Jun 3 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
211 - [pre-asun2.1.4-22]
212 * Wed May 19 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
213 - [pre-asun2.1.4-15]
214   Make BerkleyDB=/usr.
215 * Sun May 2 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
216 - [pre-asun2.1.4-11]
217   Integrate three patches into netatalk-asun.makefile.patch.
218   Change /etc/uams dir to /usr/lib/atalk/uams.
219   Add configuration line to /etc/atalk/afpd.conf and remove needless 
220   variables from /etc/atalk/config and /etc/rc.d/init.d/atalk.
221 * Wed Apr 21 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
222 - [pre-asun2.1.4-9]
223   Move %chengelog section last.
224 * Wed Mar 31 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
225 - Comment out -DNEED_QUOTA_WRAPPER in sys/linux/Makefile.
226 * Sat Mar 20 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
227 - Correct symbolic links to psf.
228   Remove asciize function from nbplkup so as to display Japanese hostname.
229 * Thu Mar 11 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
230 - Included MacPerl 5 script ICDumpSuffixMap which dumps suffix mapping
231   containd in Internet Config Preference.
232 * Tue Mar 2 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
233 - [asun2.1.3]
234 * Mon Feb 15 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
235 - [pre-asun2.1.2-8]
236 * Sun Feb 7 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
237 - [pre-asun2.1.2-6]
238 * Mon Jan 25 1999 iNOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
239 - [pre-asun2.1.2-3]
240 * Thu Dec 17 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
241 - [pre-asun2.1.2]
242   Remove crlf patch. It is now a server's option.
243 * Thu Dec 3 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
244 - Use stable version source netatalk-1.4b2+asun2.1.1.tar.gz
245   Add uams directory
246 * Sat Nov 28 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
247 - Use pre-asun2.1.1-3 source.
248 * Mon Nov 23 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
249 - Use pre-asun2.1.1-2 source.
250 * Mon Nov 16 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
251 - Fix rcX.d's symbolic links.
252 * Wed Oct 28 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
253 - Use pre-asun2.1.0a-2 source. Remove '%exclusiveos linux' line.
254 * Sat Oct 24 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
255 - Use stable version source netatalk-1.4b2+asun2.1.0.tar.gz.
256 * Mon Oct 5 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
257 - Use pre-asun2.1.0-10a source.
258 * Thu Sep 19 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
259 - Use pre-asun2.1.0-8 source. Add chkconfig support.
260 * Sat Sep 12 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
261 - Comment out -DCRLF. Use RPM_OPT_FLAGS.
262 * Mon Sep 8 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
263 - Use pre-asun2.1.0-7 source. Rename atalk.init to atalk.
264 * Mon Aug 22 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
265 - Use pre-asun2.1.0-6 source.
266 * Mon Jul 27 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
267 - Use pre-asun2.1.0-5 source.
268 * Tue Jul 21 1998 INOUE Koichi <inoue@ma.ns.musashi-techa.c.jp>
269 - Use pre-asun2.1.0-3 source.
270 * Tue Jul 7 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
271 - Add afpovertcp entries to /etc/services
272 - Remove BuildRoot in man8 pages
273 * Mon Jun 29 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
274 - Use modified sources 1.4b2+asun2.1.0 produced by Adrian Sun
275   <asun@saul9.u.washington.edu> to provide an AppleShareIP file server
276 - Included AppleVolumes.system file maintained by Johnson
277   <johnson@stpt.usf.edu>
278 * Mon Aug 25 1997 David Gibson <D.Gibson@student.anu.edu.au>
279 - Used a buildroot
280 - Use RPM_OPT_FLAGS
281 - Moved configuration parameters/files from atalk.init to /etc/atalk
282 - Separated devel package
283 - Built with shared libraries
284 * Sun Jul 13 1997 Paul H. Hargrove <hargrove@sccm.Stanford.EDU>
285 - Updated sources from 1.3.3 to 1.4b2
286 - Included endian patch for Linux/SPARC
287 - Use all the configuration files supplied in the source.  This has the
288   following advantages over the ones in the previous rpm release:
289         + The printer 'lp' isn't automatically placed in papd.conf
290         + The default file conversion is binary rather than text.
291 - Automatically add and remove DDP services from /etc/services
292 - Placed the recommended /etc/services in the documentation
293 - Changed atalk.init to give daemons a soft kill
294 - Changed atalk.init to make configuration easier
295
296 * Wed May 28 1997 Mark Cornick <mcornick@zorak.gsfc.nasa.gov>
297 Updated for /etc/pam.d