1 #################################################### VERSIONING INFORMATION
3 %define version 1.5pre5
6 ################################################# BASIC PACKAGE INFORMATION
7 Summary: Appletalk and Appleshare/IP services for Linux
12 Group: Networking/Daemons
13 Source0: %{name}-%{version}.tar.gz
14 URL: http://netatalk.sourceforge.net/
15 Packager: rufus t firefly <rufus.t.firefly@linux-mandrake.com>
16 Obsoletes: netatalk-1.4b2+asun netatalk-1.4.99
18 ############################################################## REQUIREMENTS
19 Requires: cracklib, openssl, tcp_wrappers, pam
20 BuildRequires: openssl-devel
23 BuildRoot: /var/tmp/%{name}-buildroot
26 netatalk is an implementation of the AppleTalk Protocol Suite for Unix/Linux
27 systems. The current release contains support for Ethertalk Phase I and II,
28 DDP, RTMP, NBP, ZIP, AEP, ATP, PAP, ASP, and AFP. It provides Appletalk file
29 printing and routing services on Solaris 2.5, Linux, FreeBSD, SunOS 4.1 and
30 Ultrix 4. It also supports AFP 2.1 and 2.2 (Appleshare IP).
33 Group: Development/Networking
34 Summary: Appletalk and Appleshare/IP services for Linux development files
36 netatalk is an implementation of the AppleTalk Protocol Suite for Unix/Linux
37 systems. The current release contains support for Ethertalk Phase I and II,
38 DDP, RTMP, NBP, ZIP, AEP, ATP, PAP, ASP, and AFP. It provides Appletalk file
39 printing and routing services on Solaris 2.5, Linux, FreeBSD, SunOS 4.1 and
40 Ultrix 4. It also supports AFP 2.1 and 2.2 (Appleshare IP).
42 This package is required for developing appletalk-based applications.
46 * Wed Mar 07 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
48 - pre-release 5 for sourceforge
50 * Fri Feb 23 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
52 - pre-release 5 for sourceforge (prebuild)
54 * Tue Feb 20 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
56 - pre-release 4 for sourceforge
57 - modified/split mandrake spec for redhat 7 build
59 * Mon Dec 18 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
61 - pre-release 3 for sourceforge
62 - moved away from 1.4.99 ...
64 * Wed Nov 08 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
65 - v1.4.99-0.20001108mdk
66 - pre-release 2 for sourceforge
68 * Wed Sep 27 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
69 - v1.4.99-0.20000927mdk
70 - pre-release 1 for sourceforge
77 CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer -fsigned-char" ./configure \
90 ### INSTALL (USING "make install") ###
91 mkdir -p $RPM_BUILD_ROOT%{prefix}
92 make DESTDIR=$RPM_BUILD_ROOT install-strip
95 #for i in 1 3 4 5 8; do
96 # bzip2 -v $RPM_BUILD_ROOT/usr/man/man$i/*.$i
100 #mkdir -p $RPM_BUILD_ROOT/etc/pam.d/
101 #install -m 644 -o 0 -g 0 config/netatalk.pamd \
102 # $RPM_BUILD_ROOT/etc/pam.d/netatalk
105 ### RUN CHKCONFIG ###
106 /sbin/chkconfig --add atalk
108 # after the first install only
109 if [ "$1" = 1 ]; then
110 # add the ddp lines to /etc/services
111 if (grep '[0-9][0-9]*/ddp' /etc/services >/dev/null); then
113 warning: The DDP services appear to be present in /etc/services.
114 warning: Please check them against services.atalk in the documentation.
118 cat <<'_EOD2_' >>/etc/services
119 # start of DDP services
121 # Everything between the 'start of DDP services' and 'end of DDP services'
122 # lines will be automatically deleted when the netatalk package is removed.
124 rtmp 1/ddp # Routing Table Maintenance Protocol
125 nbp 2/ddp # Name Binding Protocol
126 echo 4/ddp # AppleTalk Echo Protocol
127 zip 6/ddp # Zone Information Protocol
129 afpovertcp 548/tcp # AFP over TCP
131 # end of DDP services
137 ### RUN CHKCONFIG ###
138 /sbin/chkconfig --del atalk
141 # do only for the last un-install
142 if [ "$1" = 0 ]; then
143 # remove the ddp lines from /etc/services
144 if (grep '^# start of DDP services$' /etc/services >/dev/null && \
145 grep '^# end of DDP services$' /etc/services >/dev/null ); then
146 sed -e '/^# start of DDP services$/,/^# end of DDP services$/d' \
147 </etc/services >/tmp/services.tmp$$
148 cat /tmp/services.tmp$$ >/etc/services
149 rm /tmp/services.tmp$$
152 warning: Unable to find the lines `# start of DDP services` and
153 warning: `# end of DDP services` in the file /etc/services.
154 warning: You should remove the DDP services from /etc/services manually.
160 rm -rf $RPM_BUILD_ROOT
161 rm -rf $RPM_BUILD_DIR/%{name}/
164 %defattr(-,root,root)
166 wconfig /etc/atalk/Apple*
167 %config /etc/atalk/*.conf
168 %config /etc/pam.d/netatalk
171 /etc/rc.d/init.d/atalk
180 %defattr(-,root,root)
182 %dir %{prefix}/include/atalk
183 %{prefix}/include/atalk/*.h
184 %dir %{prefix}/include/netatalk
185 %{prefix}/include/netatalk/*.h
186 %{prefix}/share/aclocal/netatalk.m4