1 #################################################### VERSIONING INFORMATION
3 %define version __VERSION__
6 ################################################# BASIC PACKAGE INFORMATION
7 Summary: Appletalk and Appleshare/IP services for Linux
12 Group: Networking/Daemons
13 Source0: %{name}-%{version}.tar.gz
14 Patch0: netatalk-rpmbuild.patch
15 URL: http://netatalk.sourceforge.net/
16 Packager: rufus t firefly <rufus.t.firefly@linux-mandrake.com>
17 Obsoletes: netatalk-1.4b2+asun netatalk-1.4.99
19 ############################################################## REQUIREMENTS
20 Requires: cracklib, openssl, tcp_wrappers, pam
21 BuildRequires: openssl-devel
23 # Note: RedHat 7.3 build requires autoconf >= 2.53, automake >= 1.5, ac-archive >= 0.5
26 BuildRoot: /var/tmp/%{name}-buildroot
29 netatalk is an implementation of the AppleTalk Protocol Suite for Unix/Linux
30 systems. The current release contains support for Ethertalk Phase I and II,
31 DDP, RTMP, NBP, ZIP, AEP, ATP, PAP, ASP, and AFP. It provides Appletalk file
32 printing and routing services on Solaris 2.5, Linux, FreeBSD, SunOS 4.1 and
33 Ultrix 4. It also supports AFP 2.1 and 2.2 (Appleshare IP).
36 Group: Development/Networking
37 Summary: Appletalk and Appleshare/IP services for Linux development files
39 netatalk is an implementation of the AppleTalk Protocol Suite for Unix/Linux
40 systems. The current release contains support for Ethertalk Phase I and II,
41 DDP, RTMP, NBP, ZIP, AEP, ATP, PAP, ASP, and AFP. It provides Appletalk file
42 printing and routing services on Solaris 2.5, Linux, FreeBSD, SunOS 4.1 and
43 Ultrix 4. It also supports AFP 2.1 and 2.2 (Appleshare IP).
45 This package is required for developing appletalk-based applications.
49 * Sat Jan 04 2002 Steven N. Hirsch <shirsch@adelphia.net>
50 - Fix RedHat RPM build.
51 - Build Apple2 boot support.
53 * Thu Apr 12 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
55 - pre-release 6 for sourceforge
57 * Wed Mar 07 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
59 - pre-release 5 for sourceforge
61 * Fri Feb 23 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
63 - pre-release 5 for sourceforge (prebuild)
65 * Tue Feb 20 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
67 - pre-release 4 for sourceforge
68 - modified/split mandrake spec for redhat 7 build
70 * Mon Dec 18 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
72 - pre-release 3 for sourceforge
73 - moved away from 1.4.99 ...
75 * Wed Nov 08 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
76 - v1.4.99-0.20001108mdk
77 - pre-release 2 for sourceforge
79 * Wed Sep 27 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
80 - v1.4.99-0.20000927mdk
81 - pre-release 1 for sourceforge
84 %setup -q -n %{name}-%{version}/
85 %patch0 -p1 -b .rpmbuild
88 CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer -fsigned-char" ./configure \
90 --libexec=%{prefix}/libexec/netatalk \
91 --with-config-dir=/etc/atalk \
92 --with-pkgconfdir=/etc/atalk \
93 --with-uams-path=/etc/atalk/uams \
94 --with-message-dir=/etc/atalk/msg \
100 --with-tcp-wrappers \
107 ### INSTALL (USING "make install") ###
108 mkdir -p $RPM_BUILD_ROOT{%{prefix},/etc/atalk/{uams,msg}}
109 make DESTDIR=$RPM_BUILD_ROOT install-strip
112 ### RUN CHKCONFIG ###
113 /sbin/chkconfig --add atalk
115 # after the first install only
116 if [ "$1" = 1 ]; then
117 # add the ddp lines to /etc/services
118 if (grep '[0-9][0-9]*/ddp' /etc/services >/dev/null); then
120 warning: The DDP services appear to be present in /etc/services.
121 warning: Please check them against services.atalk in the documentation.
125 cat <<'_EOD2_' >>/etc/services
126 # start of DDP services
128 # Everything between the 'start of DDP services' and 'end of DDP services'
129 # lines will be automatically deleted when the netatalk package is removed.
131 rtmp 1/ddp # Routing Table Maintenance Protocol
132 nbp 2/ddp # Name Binding Protocol
133 echo 4/ddp # AppleTalk Echo Protocol
134 zip 6/ddp # Zone Information Protocol
136 afpovertcp 548/tcp # AFP over TCP
138 # end of DDP services
144 ### RUN CHKCONFIG ###
145 /sbin/chkconfig --del atalk
148 # do only for the last un-install
149 if [ "$1" = 0 ]; then
150 # remove the ddp lines from /etc/services
151 if (grep '^# start of DDP services$' /etc/services >/dev/null && \
152 grep '^# end of DDP services$' /etc/services >/dev/null ); then
153 sed -e '/^# start of DDP services$/,/^# end of DDP services$/d' \
154 </etc/services >/tmp/services.tmp$$
155 cat /tmp/services.tmp$$ >/etc/services
156 rm /tmp/services.tmp$$
159 warning: Unable to find the lines `# start of DDP services` and
160 warning: `# end of DDP services` in the file /etc/services.
161 warning: You should remove the DDP services from /etc/services manually.
167 rm -rf $RPM_BUILD_ROOT
168 rm -rf $RPM_BUILD_DIR/%{name}/
171 %defattr(-,root,root)
173 %config /etc/atalk/Apple*
174 %config /etc/atalk/*.conf
175 %config /etc/pam.d/netatalk
178 /etc/rc.d/init.d/atalk
185 %{prefix}/man/man*/*.gz
188 %defattr(-,root,root)
190 %dir %{prefix}/include/atalk
191 %{prefix}/include/atalk/*.h
192 %dir %{prefix}/include/netatalk
193 %{prefix}/include/netatalk/*.h
194 %{prefix}/share/aclocal/netatalk.m4