1# $OpenBSD: mopd-x.x.x.spec,v 1.1 1999/03/27 14:31:23 maja Exp $ 2Summary: MOP (Maintenance Operations Protocol) loader daemon 3Name: mopd 4Version: 2.5.4 5Release: 2 6Copyright: BSD 7Group: Networking 8Source: ftp://ftp.stacken.kth.se/pub/NetBSD/mopd/mopd-2.5.4.tar.gz 9BuildRoot: /var/tmp/mopd-2.5.4 10Packager: Mats O Jansson <moj@stacken.kth.se> 11 12%description 13Mopd services MOP Load requests on the Ethernet connected to interface or 14all interfaces if a `-a' is given. In a load request received by mopd a 15filename can be given. This is the normal case for e.g. terminal servers. 16If a filename isn't given mopd must know what image to load. 17 18Upon receiving a request, mopd checks if the requested file exists in 19/tftpboot/mop, the filename is normaly uppercase and with an extension of 20.SYS. If the filename isn't given, the ethernet address of the target is 21used as filename, e.g. 08002b09f4de.SYS and it might be a soft link to 22another file. 23 24Mopd supports two kinds of files. The first type that is check is if the 25file is in a.out(5) format. If not, a couple of Digital's formats are 26checked. 27 28%prep 29%setup -q -c mopd-2.5.4 30 31%build 32(cd otherOS && make) 33 34%install 35rm -rf $RPM_BUILD_ROOT 36mkdir -p -m 755 $RPM_BUILD_ROOT/etc/rc.d/init.d 37mkdir -p -m 755 $RPM_BUILD_ROOT/usr/man/man1 38mkdir -p -m 755 $RPM_BUILD_ROOT/usr/man/man8 39mkdir -p -m 755 $RPM_BUILD_ROOT/usr/sbin 40mkdir -p -m 755 $RPM_BUILD_ROOT/tftpboot/mop 41(cd otherOS && make INSTALL="$RPM_BUILD_ROOT" install) 42 43%clean 44cd .. 45rm -rf mopd-2.5.4 46rm -rf $RPM_BUILD_ROOT 47 48%post 49/sbin/chkconfig --add mopd 50 51%postun 52if [ $1 = 0 ]; then 53 /sbin/chkconfig --del mopd 54fi 55 56%files 57%attr(755, root, root) /tftpboot/mop 58%attr(755, root, root) /usr/sbin/mopchk 59%attr(644, root, root) /usr/man/man1/mopchk.1 60%attr(755, root, root) /usr/sbin/mopd 61%attr(644, root, root) /usr/man/man8/mopd.8 62%attr(755, root, root) /usr/sbin/mopprobe 63%attr(644, root, root) /usr/man/man1/mopprobe.1 64%attr(755, root, root) /usr/sbin/moptrace 65%attr(644, root, root) /usr/man/man1/moptrace.1 66%config %attr(755, root, root) /etc/rc.d/init.d/mopd 67 68%changelog 69* Fri Mar 26 1998 Mats O Jansson <moj@stacken.kth.se> 70- incorparated lots of ideas from <xenophon@irtnog.org> who had written 71 the mopd-linux-2.5.3 package. 72 73* Wed Mar 24 1998 Mats O Jansson <moj@stacken.kth.se> 74- initial build 75