1 #################################################### VERSIONING INFORMATION
3 %define version 1.5pre6
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 * Thu Apr 12 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
48 - pre-release 6 for sourceforge
50 * Wed Mar 07 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
52 - pre-release 5 for sourceforge
54 * Fri Feb 23 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
56 - pre-release 5 for sourceforge (prebuild)
58 * Tue Feb 20 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
60 - pre-release 4 for sourceforge
61 - modified/split mandrake spec for redhat 7 build
63 * Mon Dec 18 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
65 - pre-release 3 for sourceforge
66 - moved away from 1.4.99 ...
68 * Wed Nov 08 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
69 - v1.4.99-0.20001108mdk
70 - pre-release 2 for sourceforge
72 * Wed Sep 27 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
73 - v1.4.99-0.20000927mdk
74 - pre-release 1 for sourceforge
77 %setup -q -n %{name}-%{version}/
80 CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer -fsigned-char" ./configure \
82 --with-config-dir=/etc/atalk \
83 --with-uams-path=/etc/atalk/uams \
84 --with-msg-dir=/etc/atalk/msg \
96 ### INSTALL (USING "make install") ###
97 mkdir -p $RPM_BUILD_ROOT{%{prefix},/etc/atalk/{uams,msg}}
98 make DESTDIR=$RPM_BUILD_ROOT install-strip
101 #for i in 1 3 4 5 8; do
102 # bzip2 -v $RPM_BUILD_ROOT/usr/man/man$i/*.$i
106 ### RUN CHKCONFIG ###
107 /sbin/chkconfig --add atalk
109 # after the first install only
110 if [ "$1" = 1 ]; then
111 # add the ddp lines to /etc/services
112 if (grep '[0-9][0-9]*/ddp' /etc/services >/dev/null); then
114 warning: The DDP services appear to be present in /etc/services.
115 warning: Please check them against services.atalk in the documentation.
119 cat <<'_EOD2_' >>/etc/services
120 # start of DDP services
122 # Everything between the 'start of DDP services' and 'end of DDP services'
123 # lines will be automatically deleted when the netatalk package is removed.
125 rtmp 1/ddp # Routing Table Maintenance Protocol
126 nbp 2/ddp # Name Binding Protocol
127 echo 4/ddp # AppleTalk Echo Protocol
128 zip 6/ddp # Zone Information Protocol
130 afpovertcp 548/tcp # AFP over TCP
132 # end of DDP services
138 ### RUN CHKCONFIG ###
139 /sbin/chkconfig --del atalk
142 # do only for the last un-install
143 if [ "$1" = 0 ]; then
144 # remove the ddp lines from /etc/services
145 if (grep '^# start of DDP services$' /etc/services >/dev/null && \
146 grep '^# end of DDP services$' /etc/services >/dev/null ); then
147 sed -e '/^# start of DDP services$/,/^# end of DDP services$/d' \
148 </etc/services >/tmp/services.tmp$$
149 cat /tmp/services.tmp$$ >/etc/services
150 rm /tmp/services.tmp$$
153 warning: Unable to find the lines `# start of DDP services` and
154 warning: `# end of DDP services` in the file /etc/services.
155 warning: You should remove the DDP services from /etc/services manually.
161 rm -rf $RPM_BUILD_ROOT
162 rm -rf $RPM_BUILD_DIR/%{name}/
165 %defattr(-,root,root)
167 %config /etc/atalk/Apple*
168 %config /etc/atalk/*.conf
169 %config /etc/pam.d/netatalk
172 /etc/rc.d/init.d/atalk
181 %defattr(-,root,root)
183 %dir %{prefix}/include/atalk
184 %{prefix}/include/atalk/*.h
185 %dir %{prefix}/include/netatalk
186 %{prefix}/include/netatalk/*.h
187 %{prefix}/share/aclocal/netatalk.m4