Commit Graph

48 Commits

Author SHA1 Message Date
dholland b0188b51ef Refine previous: can put the main -> mymain thing in the .x file, which is
both tidier and also doesn't break update builds.
2008-09-30 06:25:22 +00:00
dholland fe23e175c3 Enable the code that reads /etc/pcnfsd.conf. It was disabled because
rpcgen offers no mechanism to call it from the rpcgen-created main().
So, use the preprocessor to rename that mymain() and provide another
main() that loads the config file first.

PR bin/12758.
2008-09-30 05:20:42 +00:00
reed 12f08b06b6 Fix the Title of manual page so it our official name (rpc.pcnfsd).
Install so first file installed matches this correct manual page
name.

(Both manual pages are still installed. And only rpc.pcnfsd binary is
installed. So no change.)
2008-09-27 04:47:01 +00:00
gmcgarry 3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
mrg aadd7d4847 sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
dsl c4670c4ec7 Add (unsigned char) cast to ctype functions 2004-10-30 15:28:45 +00:00
grant cacf2d0f45 s/netbsd.org/NetBSD.org/i 2003-11-12 13:31:07 +00:00
lukem a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
lukem 87b1d00a0c remove unnecessary dependency now that bsd.rpc.mk adds to DPSRCS 2003-07-29 02:48:47 +00:00
lukem eb51573bd7 Use ${DEPENDSRCS} as a target instead of .depend, now that
<bsd.dep.mk> builds .depend from .dep files.
2003-07-28 15:25:02 +00:00
itojun 5d573dd9ce use bounded string op 2003-07-16 08:22:01 +00:00
lukem 001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
simonb 276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
sommerfeld 8f6f405641 Use <bsd.rpc.mk> 2003-01-05 19:24:06 +00:00
petrov 664489a4cb follow-up rpcgen changes. 2002-10-31 08:39:13 +00:00
wiz b1c7ac0e6d "definitions" has lots of 'i's, but that's not reason to leave one out. 2002-09-29 23:23:56 +00:00
lukem c52b93f508 minor makefile delint 2002-09-18 13:31:52 +00:00
thorpej 3b1c84c6b5 Resolve rpcgen's path in a way that works with other shells. 2002-09-14 05:35:13 +00:00
christos c9bffd0130 fix argument order. 2002-08-02 14:06:07 +00:00
christos bdb7464e61 oops reversed argument order. 2002-08-02 02:49:27 +00:00
christos 1bf7077704 welcome to the 20th century; use logwtmp{,x}; don't write to /var/adm/wtmp! 2002-08-02 02:47:58 +00:00
thorpej 9c33b55e7c Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

	* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
	  of the infratsructure (libraries, support programs, etc.)

	* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
	  building of support for using the corresponding API
	  in various libraries/programs that can use it.

As discussed on tech-toolchain.
2002-03-22 18:10:19 +00:00
wiz a2d753e3ef Whitespace nits. 2002-01-19 11:44:57 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
enami 62589880a5 No need to invoke extra shell. 2001-02-16 01:05:32 +00:00
enami 5d315aaaf9 Run make in compat mode while evaluating rhs of != op. 2001-02-16 01:01:39 +00:00
cgd c338834cd9 use expr to do subtraction. shell math isn't as portable. 2001-01-16 02:42:39 +00:00
erh 5303e70da5 Make targets which are generated with rpcgen depend on the rpcgen binary. 2000-09-10 23:21:49 +00:00
cgd 4bf5f7086b ${RPCGEN}, not hard-coded rpcgen 2000-07-25 06:29:44 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
mycroft 2e9ada3aff const propagation. 1998-07-27 15:11:06 +00:00
mycroft 1f86e5830d const poisoning. 1998-07-27 00:52:00 +00:00
mikel 1dae4d16e9 (8C) -> (8) 1998-03-18 06:42:32 +00:00
mrg dc05f41d80 add missing .Nm sections 1997-11-11 10:07:34 +00:00
lukem 736ba086df WARNSify, KNFify 1997-10-25 13:45:55 +00:00
lukem 0a94f4f077 use CPPFLAGS instead of CFLAGS 1997-10-25 06:57:53 +00:00
lukem f5bf267d90 enable WARNS=1 by default, but disable in unclean 3rd party code 1997-10-18 06:42:25 +00:00
lukem b6572fdce5 free returned value from yp_match() if an error occurs 1997-05-21 07:20:13 +00:00
christos 0aad9d4378 Makefile cleanups 1997-03-24 22:02:40 +00:00
gwr d87f04d7a2 Correct the "Vulnerabilities" announced in CERT advisory CA-96.08. 1996-04-25 01:00:12 +00:00
gwr 8d3f7ee63c minor cleanup 1995-08-14 19:50:09 +00:00
gwr ebd029a6da Add note (in HISTORY) to satisfy distribution terms. 1995-08-14 19:48:07 +00:00
gwr 6f885de1cf Put the SVR4 code back in (#ifdef SVR4) so as to respect the
requests made in the distribution terms. (re. modifications)
1995-08-14 19:45:18 +00:00
gwr e69420e49a Do not complain when yp_bind fails. It is optional. 1995-07-25 22:24:19 +00:00
gwr 457d5a17a4 Add the NetBSD ID strings. 1995-07-25 22:20:13 +00:00
jtc 11b902c1ae /usr/etc -> /usr/sbin 1995-07-25 20:22:10 +00:00
cgd 5c31b284f8 make work regardless of 'obj', do dependencies a bit better 1995-07-24 19:12:18 +00:00
jtc 82b75dfd3f gwr's port of pcnfsd 1995-07-24 04:02:44 +00:00