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.bz2
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: cracklib-devel, openssl-devel, pam-devel
23 BuildRoot: %{_tmppath}/%{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 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
48 - pre-release 5 for sourceforge
49 - sync with redhat package
51 * Mon Dec 18 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
53 - pre-release 3 for sourceforge
54 - moved away from 1.4.99 ...
56 * Wed Nov 08 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
57 - v1.4.99-0.20001108mdk
58 - pre-release 2 for sourceforge
60 * Wed Sep 27 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
61 - v1.4.99-0.20000927mdk
62 - pre-release 1 for sourceforge
65 %setup -q -n netatalk-%{version}/
69 CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer -fsigned-char" ./configure \
82 ### INSTALL (USING "make install") ###
83 mkdir -p $RPM_BUILD_ROOT/usr
84 make DESTDIR=$RPM_BUILD_ROOT install-strip
87 for i in 1 3 4 5 8; do
88 bzip2 -v $RPM_BUILD_ROOT/usr/man/man$i/*.$i
93 /sbin/chkconfig --add atalk
95 # after the first install only
97 # add the ddp lines to /etc/services
98 if (grep '[0-9][0-9]*/ddp' /etc/services >/dev/null); then
100 warning: The DDP services appear to be present in /etc/services.
101 warning: Please check them against services.atalk in the documentation.
105 cat <<'_EOD2_' >>/etc/services
106 # start of DDP services
108 # Everything between the 'start of DDP services' and 'end of DDP services'
109 # lines will be automatically deleted when the netatalk package is removed.
111 rtmp 1/ddp # Routing Table Maintenance Protocol
112 nbp 2/ddp # Name Binding Protocol
113 echo 4/ddp # AppleTalk Echo Protocol
114 zip 6/ddp # Zone Information Protocol
116 afpovertcp 548/tcp # AFP over TCP
118 # end of DDP services
124 ### RUN CHKCONFIG ###
125 /sbin/chkconfig --del atalk
128 # do only for the last un-install
129 if [ "$1" = 0 ]; then
130 # remove the ddp lines from /etc/services
131 if (grep '^# start of DDP services$' /etc/services >/dev/null && \
132 grep '^# end of DDP services$' /etc/services >/dev/null ); then
133 sed -e '/^# start of DDP services$/,/^# end of DDP services$/d' \
134 </etc/services >/tmp/services.tmp$$
135 cat /tmp/services.tmp$$ >/etc/services
136 rm /tmp/services.tmp$$
139 warning: Unable to find the lines `# start of DDP services` and
140 warning: `# end of DDP services` in the file /etc/services.
141 warning: You should remove the DDP services from /etc/services manually.
147 rm -rf $RPM_BUILD_ROOT
150 %defattr(-,root,root)
151 %doc [A-Z][A-Z]* ChangeLog doc/[A-Z][A-Z]*
153 %config /etc/atalk/Apple*
154 %config /etc/atalk/*.conf
155 %config /etc/pam.d/netatalk
160 /etc/rc.d/init.d/atalk
166 %defattr(-,root,root)
168 %dir %{prefix}/include/atalk
169 %{prefix}/include/atalk/*.h
170 %dir %{prefix}/include/netatalk
171 %{prefix}/include/netatalk/*.h
172 %{prefix}/share/aclocal/netatalk.m4