1 #################################################### VERSIONING INFORMATION
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: dan dickey <dan.dickey@savvis.net>
17 ############################################################## REQUIREMENTS
18 Requires: cracklib, openssl, tcp_wrappers, pam
19 BuildRequires: openssl-devel
22 BuildRoot: /var/tmp/%{name}-buildroot
25 netatalk is an implementation of the AppleTalk Protocol Suite for Unix/Linux
26 systems. The current release contains support for Ethertalk Phase I and II,
27 DDP, RTMP, NBP, ZIP, AEP, ATP, PAP, ASP, and AFP. It provides Appletalk file
28 printing and routing services on Solaris 2.5, Linux, FreeBSD, SunOS 4.1 and
29 Ultrix 4. It also supports AFP 3, 2.2 and 2.1 (Appleshare IP).
32 Group: Development/Networking
33 Summary: Appletalk and Appleshare/IP services for Linux development files
35 netatalk is an implementation of the AppleTalk Protocol Suite for Unix/Linux
36 systems. The current release contains support for Ethertalk Phase I and II,
37 DDP, RTMP, NBP, ZIP, AEP, ATP, PAP, ASP, and AFP. It provides Appletalk file
38 printing and routing services on Solaris 2.5, Linux, FreeBSD, SunOS 4.1 and
39 Ultrix 4. It also supports AFP 3, 2.2 and 2.1 (Appleshare IP).
41 This package is required for developing appletalk-based applications.
44 %setup -q -n %{name}-%{version}/
47 CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer -fsigned-char" ./configure \
49 --libexec=%{prefix}/libexec/netatalk \
50 --with-config-dir=/etc/atalk \
51 --with-pkgconfdir=/etc/atalk \
52 --with-uams-path=/etc/atalk/uams \
53 --with-message-dir=/etc/atalk/msg \
66 ### INSTALL (USING "make install") ###
67 mkdir -p $RPM_BUILD_ROOT{%{prefix},/etc/atalk/{uams,msg}}
68 make DESTDIR=$RPM_BUILD_ROOT install-strip
72 /sbin/chkconfig --add atalk
74 # after the first install only
76 # add the ddp lines to /etc/services
77 if (grep '[0-9][0-9]*/ddp' /etc/services >/dev/null); then
79 warning: The DDP services appear to be present in /etc/services.
80 warning: Please check them against services.atalk in the documentation.
84 cat <<'_EOD2_' >>/etc/services
85 # start of DDP services
87 # Everything between the 'start of DDP services' and 'end of DDP services'
88 # lines will be automatically deleted when the netatalk package is removed.
90 rtmp 1/ddp # Routing Table Maintenance Protocol
91 nbp 2/ddp # Name Binding Protocol
92 echo 4/ddp # AppleTalk Echo Protocol
93 zip 6/ddp # Zone Information Protocol
95 afpovertcp 548/tcp # AFP over TCP
103 ### RUN CHKCONFIG ###
104 /sbin/chkconfig --del atalk
107 # do only for the last un-install
108 if [ "$1" = 0 ]; then
109 # remove the ddp lines from /etc/services
110 if (grep '^# start of DDP services$' /etc/services >/dev/null && \
111 grep '^# end of DDP services$' /etc/services >/dev/null ); then
112 sed -e '/^# start of DDP services$/,/^# end of DDP services$/d' \
113 </etc/services >/tmp/services.tmp$$
114 cat /tmp/services.tmp$$ >/etc/services
115 rm /tmp/services.tmp$$
118 warning: Unable to find the lines `# start of DDP services` and
119 warning: `# end of DDP services` in the file /etc/services.
120 warning: You should remove the DDP services from /etc/services manually.
126 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
129 %defattr(-,root,root)
131 %config /etc/atalk/Apple*
132 %config /etc/atalk/*.conf
133 %config /etc/pam.d/netatalk
138 /etc/rc.d/init.d/atalk
142 %{prefix}/man/man*/*.gz
143 %{prefix}/share/netatalk/pagecount.ps
146 %defattr(-,root,root)
151 %dir %{prefix}/include/atalk
152 %{prefix}/include/atalk/*.h
153 %dir %{prefix}/include/netatalk
154 %{prefix}/include/netatalk/*.h
155 %{prefix}/share/aclocal/netatalk.m4
159 * Thu Apr 28 2005 Dan A. Dickey <dan.dickey@savvis.net>
160 - Modify redhat spec file for Fedora Core.
162 * Sat Jan 04 2002 Steven N. Hirsch <shirsch@adelphia.net>
163 - Fix RedHat RPM build.
164 - Build Apple2 boot support.
166 * Thu Apr 12 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
168 - pre-release 6 for sourceforge
170 * Wed Mar 07 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
172 - pre-release 5 for sourceforge
174 * Fri Feb 23 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
176 - pre-release 5 for sourceforge (prebuild)
178 * Tue Feb 20 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
180 - pre-release 4 for sourceforge
181 - modified/split mandrake spec for redhat 7 build
183 * Mon Dec 18 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
185 - pre-release 3 for sourceforge
186 - moved away from 1.4.99 ...
188 * Wed Nov 08 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
189 - v1.4.99-0.20001108mdk
190 - pre-release 2 for sourceforge
192 * Wed Sep 27 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
193 - v1.4.99-0.20000927mdk
194 - pre-release 1 for sourceforge