1 #################################################### VERSIONING INFORMATION
3 %define version 1.5pre6
5 %define tardir %{name}-%{version}
7 ################################################# BASIC PACKAGE INFORMATION
8 Summary: Appletalk and Appleshare/IP services for Linux
13 Group: Networking/Daemons
14 Source0: %{name}-%{version}.tar.bz2
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: cracklib-devel, openssl-devel, pam-devel
24 BuildRoot: %{_tmppath}/%{name}-buildroot
27 netatalk is an implementation of the AppleTalk Protocol Suite for Unix/Linux
28 systems. The current release contains support for Ethertalk Phase I and II,
29 DDP, RTMP, NBP, ZIP, AEP, ATP, PAP, ASP, and AFP. It provides Appletalk file
30 printing and routing services on Solaris 2.5, Linux, FreeBSD, SunOS 4.1 and
31 Ultrix 4. It also supports AFP 2.1 and 2.2 (Appleshare IP).
34 Group: Development/Networking
35 Summary: Appletalk and Appleshare/IP services for Linux development files
37 netatalk is an implementation of the AppleTalk Protocol Suite for Unix/Linux
38 systems. The current release contains support for Ethertalk Phase I and II,
39 DDP, RTMP, NBP, ZIP, AEP, ATP, PAP, ASP, and AFP. It provides Appletalk file
40 printing and routing services on Solaris 2.5, Linux, FreeBSD, SunOS 4.1 and
41 Ultrix 4. It also supports AFP 2.1 and 2.2 (Appleshare IP).
43 This package is required for developing appletalk-based applications.
47 * Thu Apr 12 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
49 - pre-release 6 for sourceforge
51 * Wed Mar 07 2001 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
53 - pre-release 5 for sourceforge
54 - sync with redhat package
56 * Mon Dec 18 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
58 - pre-release 3 for sourceforge
59 - moved away from 1.4.99 ...
61 * Wed Nov 08 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
62 - v1.4.99-0.20001108mdk
63 - pre-release 2 for sourceforge
65 * Wed Sep 27 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com>
66 - v1.4.99-0.20000927mdk
67 - pre-release 1 for sourceforge
70 %setup -q -n %{tardir}/
74 CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer -fsigned-char" ./configure \
76 --with-config-dir=/etc/atalk \
77 --with-uams-path=/etc/atalk/uams \
78 --with-msg-dir=/etc/atalk/msg \
90 ### INSTALL (USING "make install") ###
91 mkdir -p $RPM_BUILD_ROOT{%{prefix},/etc/atalk/{uams,msg}}
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 ### RUN CHKCONFIG ###
101 /sbin/chkconfig --add atalk
103 # after the first install only
104 if [ "$1" = 1 ]; then
105 # add the ddp lines to /etc/services
106 if (grep '[0-9][0-9]*/ddp' /etc/services >/dev/null); then
108 warning: The DDP services appear to be present in /etc/services.
109 warning: Please check them against services.atalk in the documentation.
113 cat <<'_EOD2_' >>/etc/services
114 # start of DDP services
116 # Everything between the 'start of DDP services' and 'end of DDP services'
117 # lines will be automatically deleted when the netatalk package is removed.
119 rtmp 1/ddp # Routing Table Maintenance Protocol
120 nbp 2/ddp # Name Binding Protocol
121 echo 4/ddp # AppleTalk Echo Protocol
122 zip 6/ddp # Zone Information Protocol
124 afpovertcp 548/tcp # AFP over TCP
126 # end of DDP services
132 ### RUN CHKCONFIG ###
133 /sbin/chkconfig --del atalk
136 # do only for the last un-install
137 if [ "$1" = 0 ]; then
138 # remove the ddp lines from /etc/services
139 if (grep '^# start of DDP services$' /etc/services >/dev/null && \
140 grep '^# end of DDP services$' /etc/services >/dev/null ); then
141 sed -e '/^# start of DDP services$/,/^# end of DDP services$/d' \
142 </etc/services >/tmp/services.tmp$$
143 cat /tmp/services.tmp$$ >/etc/services
144 rm /tmp/services.tmp$$
147 warning: Unable to find the lines `# start of DDP services` and
148 warning: `# end of DDP services` in the file /etc/services.
149 warning: You should remove the DDP services from /etc/services manually.
155 rm -rf $RPM_BUILD_ROOT
156 rm -rf $RPM_BUILD_DIR/%{tardir}/
159 %defattr(-,root,root)
160 %doc [A-Z][A-Z]* ChangeLog doc/[A-Z][A-Z]*
163 %config /etc/atalk/Apple*
164 %config /etc/atalk/*.conf
165 %config /etc/pam.d/netatalk
170 /etc/rc.d/init.d/atalk
176 %defattr(-,root,root)
178 %dir %{prefix}/include/atalk
179 %{prefix}/include/atalk/*.h
180 %dir %{prefix}/include/netatalk
181 %{prefix}/include/netatalk/*.h
182 %{prefix}/share/aclocal/netatalk.m4