From owner-freebsd-questions Thu May 24 22:35:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from everest.wananchi.com (everest.wananchi.com [62.8.64.4]) by hub.freebsd.org (Postfix) with ESMTP id 3FF5237B422 for ; Thu, 24 May 2001 22:35:48 -0700 (PDT) (envelope-from wash@wananchi.com) Received: from wash by everest.wananchi.com with local (Exim 3.22 #2) id 153AEh-0000zA-00; Fri, 25 May 2001 08:34:07 +0300 Date: Fri, 25 May 2001 08:34:07 +0300 From: Odhiambo Washington To: Aaron Hill Cc: FBSD-Q Subject: Re: How to recompile just tftpd? Message-ID: <20010525083407.E97581@everest.wananchi.com> Mail-Followup-To: Odhiambo Washington , Aaron Hill , FBSD-Q References: <5359.165.228.128.11.989462441.squirrel@www.futureuse.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="DIOMP1UsTsWJauNi" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <5359.165.228.128.11.989462441.squirrel@www.futureuse.net>; from "Aaron Hill" on Thu, May 10, 2001 at 12:40:41PM +1000 X-Operating-System: FreeBSD 4.3-STABLE i386 X-Mailer: Mutt http://www.mutt.org/ X-Location: Nairobi, KE, East Africa. X-Uptime: 8:26AM up 1 day, 21:31, 5 users, load averages: 0.14, 0.14, 0.09 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --DIOMP1UsTsWJauNi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Aaron Hill [20010525 05:36]: writing on the subj= ect 'How to recompile just tftpd?' Aaron>=20 Aaron> Hello, Aaron>=20 Aaron> I've made a modification to the tftpd server in FreeBSD at ... Aaron>=20 Aaron> /usr/src/libexec/tftpd Aaron>=20 Aaron> .... can someone tell me how I can recompile the tftpd source and in= stall it? Aaron>=20 Aaron>=20 Aaron> I've tried doing a make and it stops with this output ... Aaron>=20 Aaron> [root@xxxx tftpd]# make Aaron> cc -O -pipe -I/usr/src/libexec/tftpd/../../usr.bin/tftp - Aaron> c /usr/src/libexec/tftpd/tftpd.c Aaron> cc -O -pipe -I/usr/src/libexec/tftpd/../../usr.bin/tftp - Aaron> c /usr/src/libexec/tftpd/../../usr.bin/tftp/tftpsubs.c Aaron> cc -O -pipe -I/usr/src/libexec/tftpd/../../usr.bin/tftp -o tftpd= =20 Aaron> tftpd.o tftpsubs.o -lutil Aaron> make: don't know how to make tftpd.1. Stop Aaron>=20 Aaron>=20 Aaron> .... so I've tried doing a make depend first or a make depend and ma= ke from=20 Aaron> the parent directory, libexec, but I can't get it going. Aaron>=20 Aaron> This shouldn't be hard! What am I doing wrong? Hello Aaron, Have you ever built your systems from the sources? By default, there is a tftpd in FreeBSD. All I did the other day was to enable it in 3 steps: in /etc/inetd.conf: tftp dgram udp wait nobody /usr/libexec/tftpd tftpd /usr/tftp mkdir /usr/tftp chown nobody:nogroup /usr/tftp in /etc/hosts.allow: tftpd : w.x.y.z/24 : allow tftpd : ALL : deny kill -HUP `cat /var/run/inetd.pid` The only thing you have to note is that for you to upload a file to the tftpd server, the filename MUST first exist! If you wanna load a file named wash.test, then cd /usr/tftp && touch wash.test && chown nobody:nogroup wash.test. Hope that helps. -Wash -- Odhiambo Washington Wananchi Online Ltd., wash@wananchi.com 1st Flr Loita Hse Tel: 254 2 313985 Loita Street., Fax: 254 2 313922 PO Box 10286, 00100-NAIROBI,KE. "Well, that was a piece of cake, eh K-9?" "Piece of cake, Master? Radial slice of baked confection ... coefficient of relevance to Key of Time: zero." -- Dr. Who --DIOMP1UsTsWJauNi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7De7On7LIsuxjem8RAhNoAJ9RMNPk3NYYAVhUtoVRPx+nz6k84QCgmP9d 72r0lb7L91ZFBD6mdmjXtow= =dqkd -----END PGP SIGNATURE----- --DIOMP1UsTsWJauNi-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message