head	1.18;
access;
symbols
	netbsd-11-0-RC3:1.18
	netbsd-11-0-RC2:1.18
	netbsd-11-0-RC1:1.18
	perseant-exfatfs-base-20250801:1.18
	netbsd-11:1.18.0.4
	netbsd-11-base:1.18
	netbsd-10-1-RELEASE:1.17
	perseant-exfatfs-base-20240630:1.18
	perseant-exfatfs:1.18.0.2
	perseant-exfatfs-base:1.18
	netbsd-8-3-RELEASE:1.12
	netbsd-9-4-RELEASE:1.15
	netbsd-10-0-RELEASE:1.17
	netbsd-10-0-RC6:1.17
	netbsd-10-0-RC5:1.17
	netbsd-10-0-RC4:1.17
	netbsd-10-0-RC3:1.17
	netbsd-10-0-RC2:1.17
	netbsd-10-0-RC1:1.17
	netbsd-10:1.17.0.6
	netbsd-10-base:1.17
	netbsd-9-3-RELEASE:1.15
	cjep_sun2x-base1:1.17
	cjep_sun2x:1.17.0.4
	cjep_sun2x-base:1.17
	cjep_staticlib_x-base1:1.17
	netbsd-9-2-RELEASE:1.15
	cjep_staticlib_x:1.17.0.2
	cjep_staticlib_x-base:1.17
	netbsd-9-1-RELEASE:1.15
	phil-wifi-20200421:1.16
	phil-wifi-20200411:1.16
	is-mlppp:1.16.0.2
	is-mlppp-base:1.16
	phil-wifi-20200406:1.16
	netbsd-8-2-RELEASE:1.12
	netbsd-9-0-RELEASE:1.15
	netbsd-9-0-RC2:1.15
	netbsd-9-0-RC1:1.15
	phil-wifi-20191119:1.16
	netbsd-9:1.15.0.2
	netbsd-9-base:1.15
	phil-wifi-20190609:1.15
	netbsd-8-1-RELEASE:1.12
	netbsd-8-1-RC1:1.12
	pgoyette-compat-merge-20190127:1.14
	pgoyette-compat-20190127:1.14
	pgoyette-compat-20190118:1.14
	pgoyette-compat-1226:1.14
	pgoyette-compat-1126:1.14
	pgoyette-compat-1020:1.14
	pgoyette-compat-0930:1.14
	pgoyette-compat-0906:1.14
	netbsd-7-2-RELEASE:1.12
	pgoyette-compat-0728:1.14
	netbsd-8-0-RELEASE:1.12
	phil-wifi:1.14.0.4
	phil-wifi-base:1.14
	pgoyette-compat-0625:1.14
	netbsd-8-0-RC2:1.12
	pgoyette-compat-0521:1.14
	pgoyette-compat-0502:1.14
	pgoyette-compat-0422:1.14
	netbsd-8-0-RC1:1.12
	pgoyette-compat-0415:1.14
	pgoyette-compat-0407:1.14
	pgoyette-compat-0330:1.14
	pgoyette-compat-0322:1.14
	pgoyette-compat-0315:1.14
	netbsd-7-1-2-RELEASE:1.12
	pgoyette-compat:1.14.0.2
	pgoyette-compat-base:1.14
	netbsd-7-1-1-RELEASE:1.12
	matt-nb8-mediatek:1.12.0.42
	matt-nb8-mediatek-base:1.12
	perseant-stdc-iso10646:1.12.0.40
	perseant-stdc-iso10646-base:1.12
	netbsd-8:1.12.0.38
	netbsd-8-base:1.12
	prg-localcount2-base3:1.12
	prg-localcount2-base2:1.12
	prg-localcount2-base1:1.12
	prg-localcount2:1.12.0.36
	prg-localcount2-base:1.12
	pgoyette-localcount-20170426:1.12
	bouyer-socketcan-base1:1.12
	pgoyette-localcount-20170320:1.12
	netbsd-7-1:1.12.0.34
	netbsd-7-1-RELEASE:1.12
	netbsd-7-1-RC2:1.12
	netbsd-7-nhusb-base-20170116:1.12
	bouyer-socketcan:1.12.0.32
	bouyer-socketcan-base:1.12
	pgoyette-localcount-20170107:1.12
	netbsd-7-1-RC1:1.12
	pgoyette-localcount-20161104:1.12
	netbsd-7-0-2-RELEASE:1.12
	localcount-20160914:1.12
	netbsd-7-nhusb:1.12.0.30
	netbsd-7-nhusb-base:1.12
	pgoyette-localcount-20160806:1.12
	pgoyette-localcount-20160726:1.12
	pgoyette-localcount:1.12.0.28
	pgoyette-localcount-base:1.12
	netbsd-7-0-1-RELEASE:1.12
	netbsd-7-0:1.12.0.26
	netbsd-7-0-RELEASE:1.12
	netbsd-7-0-RC3:1.12
	netbsd-7-0-RC2:1.12
	netbsd-7-0-RC1:1.12
	netbsd-5-2-3-RELEASE:1.11
	netbsd-5-1-5-RELEASE:1.11
	netbsd-6-0-6-RELEASE:1.12
	netbsd-6-1-5-RELEASE:1.12
	netbsd-7:1.12.0.24
	netbsd-7-base:1.12
	yamt-pagecache-base9:1.12
	yamt-pagecache-tag8:1.12
	netbsd-6-1-4-RELEASE:1.12
	netbsd-6-0-5-RELEASE:1.12
	tls-earlyentropy:1.12.0.22
	tls-earlyentropy-base:1.12
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.12
	riastradh-drm2-base3:1.12
	netbsd-6-1-3-RELEASE:1.12
	netbsd-6-0-4-RELEASE:1.12
	netbsd-5-2-2-RELEASE:1.11
	netbsd-5-1-4-RELEASE:1.11
	netbsd-6-1-2-RELEASE:1.12
	netbsd-6-0-3-RELEASE:1.12
	netbsd-5-2-1-RELEASE:1.11
	netbsd-5-1-3-RELEASE:1.11
	netbsd-6-1-1-RELEASE:1.12
	riastradh-drm2-base2:1.12
	riastradh-drm2-base1:1.12
	riastradh-drm2:1.12.0.16
	riastradh-drm2-base:1.12
	netbsd-6-1:1.12.0.20
	netbsd-6-0-2-RELEASE:1.12
	netbsd-6-1-RELEASE:1.12
	netbsd-6-1-RC4:1.12
	netbsd-6-1-RC3:1.12
	agc-symver:1.12.0.18
	agc-symver-base:1.12
	netbsd-6-1-RC2:1.12
	netbsd-6-1-RC1:1.12
	yamt-pagecache-base8:1.12
	netbsd-5-2:1.11.0.24
	netbsd-6-0-1-RELEASE:1.12
	yamt-pagecache-base7:1.12
	netbsd-5-2-RELEASE:1.11
	netbsd-5-2-RC1:1.11
	matt-nb6-plus-nbase:1.12
	yamt-pagecache-base6:1.12
	netbsd-6-0:1.12.0.14
	netbsd-6-0-RELEASE:1.12
	netbsd-6-0-RC2:1.12
	tls-maxphys:1.12.0.12
	tls-maxphys-base:1.12
	matt-nb6-plus:1.12.0.10
	matt-nb6-plus-base:1.12
	netbsd-6-0-RC1:1.12
	yamt-pagecache-base5:1.12
	yamt-pagecache-base4:1.12
	netbsd-6:1.12.0.8
	netbsd-6-base:1.12
	netbsd-5-1-2-RELEASE:1.11
	netbsd-5-1-1-RELEASE:1.11
	yamt-pagecache-base3:1.12
	yamt-pagecache-base2:1.12
	yamt-pagecache:1.12.0.6
	yamt-pagecache-base:1.12
	cherry-xenmp:1.12.0.4
	cherry-xenmp-base:1.12
	bouyer-quota2-nbase:1.12
	bouyer-quota2:1.12.0.2
	bouyer-quota2-base:1.12
	matt-mips64-premerge-20101231:1.12
	matt-nb5-mips64-premerge-20101231:1.11
	matt-nb5-pq3:1.11.0.22
	matt-nb5-pq3-base:1.11
	netbsd-5-1:1.11.0.20
	netbsd-5-1-RELEASE:1.11
	netbsd-5-1-RC4:1.11
	matt-nb5-mips64-k15:1.11
	netbsd-5-1-RC3:1.11
	netbsd-5-1-RC2:1.11
	netbsd-5-1-RC1:1.11
	netbsd-5-0-2-RELEASE:1.11
	matt-nb5-mips64-premerge-20091211:1.11
	matt-premerge-20091211:1.12
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.11
	matt-nb4-mips64-k7-u2a-k9b:1.11
	matt-nb5-mips64-u1-k1-k5:1.11
	matt-nb5-mips64:1.11.0.18
	netbsd-5-0-1-RELEASE:1.11
	jym-xensuspend-nbase:1.12
	netbsd-5-0:1.11.0.16
	netbsd-5-0-RELEASE:1.11
	netbsd-5-0-RC4:1.11
	netbsd-5-0-RC3:1.11
	netbsd-5-0-RC2:1.11
	jym-xensuspend:1.11.0.14
	jym-xensuspend-base:1.12
	netbsd-5-0-RC1:1.11
	netbsd-5:1.11.0.12
	netbsd-5-base:1.11
	matt-mips64-base2:1.11
	matt-mips64:1.10.0.6
	mjf-devfs2:1.11.0.10
	mjf-devfs2-base:1.11
	netbsd-4-0-1-RELEASE:1.6
	wrstuden-revivesa-base-3:1.11
	wrstuden-revivesa-base-2:1.11
	wrstuden-fixsa-newbase:1.6
	wrstuden-revivesa-base-1:1.11
	yamt-pf42-base4:1.11
	yamt-pf42-base3:1.11
	hpcarm-cleanup-nbase:1.11
	yamt-pf42-baseX:1.11
	yamt-pf42-base2:1.11
	wrstuden-revivesa:1.11.0.8
	wrstuden-revivesa-base:1.11
	yamt-pf42:1.11.0.6
	yamt-pf42-base:1.11
	keiichi-mipv6-nbase:1.11
	keiichi-mipv6:1.11.0.4
	keiichi-mipv6-base:1.11
	matt-armv6-nbase:1.11
	matt-armv6-prevmlocking:1.10.4.1
	wrstuden-fixsa-base-1:1.6
	netbsd-4-0:1.6.0.14
	netbsd-4-0-RELEASE:1.6
	cube-autoconf:1.11.0.2
	cube-autoconf-base:1.11
	netbsd-4-0-RC5:1.6
	netbsd-4-0-RC4:1.6
	netbsd-4-0-RC3:1.6
	netbsd-4-0-RC2:1.6
	netbsd-4-0-RC1:1.6
	matt-armv6:1.10.0.4
	matt-armv6-base:1.11
	matt-mips64-base:1.10
	hpcarm-cleanup:1.10.0.2
	hpcarm-cleanup-base:1.11
	netbsd-3-1-1-RELEASE:1.6
	netbsd-3-0-3-RELEASE:1.6
	wrstuden-fixsa:1.6.0.12
	wrstuden-fixsa-base:1.6
	abandoned-netbsd-4-base:1.6
	abandoned-netbsd-4:1.6.0.6
	netbsd-3-1:1.6.0.8
	netbsd-3-1-RELEASE:1.6
	netbsd-3-0-2-RELEASE:1.6
	netbsd-3-1-RC4:1.6
	netbsd-3-1-RC3:1.6
	netbsd-3-1-RC2:1.6
	netbsd-3-1-RC1:1.6
	netbsd-4:1.6.0.10
	netbsd-4-base:1.6
	netbsd-3-0-1-RELEASE:1.6
	netbsd-3-0:1.6.0.4
	netbsd-3-0-RELEASE:1.6
	netbsd-3-0-RC6:1.6
	netbsd-3-0-RC5:1.6
	netbsd-3-0-RC4:1.6
	netbsd-3-0-RC3:1.6
	netbsd-3-0-RC2:1.6
	netbsd-3-0-RC1:1.6
	netbsd-2-0-3-RELEASE:1.5
	netbsd-2-1:1.5.0.6
	netbsd-2-1-RELEASE:1.5
	netbsd-2-1-RC6:1.5
	netbsd-2-1-RC5:1.5
	netbsd-2-1-RC4:1.5
	netbsd-2-1-RC3:1.5
	netbsd-2-1-RC2:1.5
	netbsd-2-1-RC1:1.5
	netbsd-2-0-2-RELEASE:1.5
	netbsd-3:1.6.0.2
	netbsd-3-base:1.6
	netbsd-2-0-1-RELEASE:1.5
	netbsd-2:1.5.0.4
	netbsd-2-base:1.5
	netbsd-2-0-RELEASE:1.5
	netbsd-2-0-RC5:1.5
	netbsd-2-0-RC4:1.5
	netbsd-2-0-RC3:1.5
	netbsd-2-0-RC2:1.5
	netbsd-2-0-RC1:1.5
	netbsd-2-0:1.5.0.2
	netbsd-2-0-base:1.5
	netbsd-1-6-PATCH002-RELEASE:1.3
	netbsd-1-6-PATCH002:1.3
	netbsd-1-6-PATCH002-RC4:1.3
	netbsd-1-6-PATCH002-RC3:1.3
	netbsd-1-6-PATCH002-RC2:1.3
	netbsd-1-6-PATCH002-RC1:1.3
	netbsd-1-6-PATCH001:1.3
	netbsd-1-6-PATCH001-RELEASE:1.3
	netbsd-1-6-PATCH001-RC3:1.3
	netbsd-1-6-PATCH001-RC2:1.3
	netbsd-1-6-PATCH001-RC1:1.3
	fvdl_fs64_base:1.4
	netbsd-1-6-RELEASE:1.3
	netbsd-1-6-RC3:1.3
	netbsd-1-6-RC2:1.3
	netbsd-1-6-RC1:1.3
	netbsd-1-6:1.3.0.4
	netbsd-1-6-base:1.3
	netbsd-1-5-PATCH003:1.1
	netbsd-1-5-PATCH002:1.1
	netbsd-1-5-PATCH001:1.1
	netbsd-1-5-RELEASE:1.1
	netbsd-1-5-BETA2:1.1
	netbsd-1-5-BETA:1.1
	netbsd-1-5-ALPHA2:1.1
	minoura-xpg4dl:1.3.0.2
	netbsd-1-5:1.1.0.2
	netbsd-1-5-base:1.1;
locks; strict;
comment	@# @;


1.18
date	2023.06.03.09.09.23;	author lukem;	state Exp;
branches;
next	1.17;
commitid	aBaIRnuykonRStrE;

1.17
date	2021.03.07.00.23.06;	author christos;	state Exp;
branches;
next	1.16;
commitid	68E7liVVqGPlgjKC;

1.16
date	2019.10.13.07.28.20;	author mrg;	state Exp;
branches;
next	1.15;
commitid	vRNwN94v7NgB2GGB;

1.15
date	2019.04.24.10.27.49;	author roy;	state Exp;
branches;
next	1.14;
commitid	nfT5RaexAs4XyAkB;

1.14
date	2017.08.17.00.06.00;	author ginsbach;	state Exp;
branches
	1.14.4.1;
next	1.13;
commitid	el0Fut9vsYV8Tu3A;

1.13
date	2017.08.16.23.38.16;	author ginsbach;	state Exp;
branches;
next	1.12;
commitid	ky6JEGYcotmAJu3A;

1.12
date	2009.04.22.15.23.07;	author lukem;	state Exp;
branches;
next	1.11;

1.11
date	2007.08.27.19.53.32;	author dsl;	state Exp;
branches
	1.11.14.1;
next	1.10;

1.10
date	2007.05.28.18.12.06;	author tls;	state Exp;
branches
	1.10.4.1;
next	1.9;

1.9
date	2007.05.28.14.49.15;	author christos;	state Exp;
branches;
next	1.8;

1.8
date	2007.05.28.12.06.40;	author tls;	state Exp;
branches;
next	1.7;

1.7
date	2007.05.13.20.03.46;	author christos;	state Exp;
branches;
next	1.6;

1.6
date	2005.01.10.02.58.59;	author lukem;	state Exp;
branches;
next	1.5;

1.5
date	2003.12.07.21.57.22;	author matt;	state Exp;
branches;
next	1.4;

1.4
date	2002.09.18.03.54.36;	author lukem;	state Exp;
branches;
next	1.3;

1.3
date	2000.06.20.13.56.43;	author fvdl;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2000.06.20.13.55.11;	author fvdl;	state Exp;
branches;
next	1.1;

1.1
date	2000.06.02.23.15.41;	author fvdl;	state Exp;
branches;
next	;

1.14.4.1
date	2019.06.10.22.10.36;	author christos;	state Exp;
branches;
next	1.14.4.2;
commitid	jtc8rnCzWiEEHGqB;

1.14.4.2
date	2020.04.13.08.05.58;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.11.14.1
date	2009.05.13.19.20.38;	author jym;	state Exp;
branches;
next	;

1.10.4.1
date	2007.11.06.23.36.35;	author matt;	state Exp;
branches;
next	;

1.3.2.1
date	2000.06.20.13.56.43;	author minoura;	state dead;
branches;
next	1.3.2.2;

1.3.2.2
date	2000.06.22.18.01.11;	author minoura;	state Exp;
branches;
next	;


desc
@@


1.18
log
@bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
	GCC_NO_warning
to
	CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
@
text
@#	$NetBSD: Makefile,v 1.17 2021/03/07 00:23:06 christos Exp $

.include <bsd.own.mk>

USE_FORT?= yes	# network client

PROG=	rpcbind
MAN=	rpcbind.8
SRCS=	check_bound.c rpcb_stat.c rpcb_svc_4.c rpcbind.c pmap_svc.c \
	rpcb_svc.c rpcb_svc_com.c security.c warmstart.c util.c 

LIBCDIR=        ${NETBSDSRCDIR}/lib/libc
LIBCRPCDIR=     ${LIBCDIR}/rpc

CPPFLAGS+=	-I${LIBCRPCDIR} -DPORTMAP -DLIBWRAP -DWARMSTART

.if (${USE_INET6} != "no")
CPPFLAGS+=	-DINET6
.endif

.if (${USE_YP} != "no")
CPPFLAGS+=	-DYP
.endif

# Uncomment these to get any useful output from 'rpcbind -d'
# CPPFLAGS+=	-DRPCBIND_DEBUG
# CPPFLAGS+=	-DDEBUG_RMTCALL
# CPPFLAGS+=	-DSVC_RUN_DEBUG

LDADD+= -lwrap -lblocklist -lutil
DPADD+= ${LIBWRAP} ${LIBBLOCKLIST} ${LIBUTIL}

COPTS.rpcb_svc_4.c+=	${CC_WNO_CAST_FUNCTION_TYPE}
COPTS.pmap_svc.c+=	${CC_WNO_CAST_FUNCTION_TYPE}
COPTS.rpcb_svc.c+=	${CC_WNO_CAST_FUNCTION_TYPE}
COPTS.rpcb_svc_com.c+=	${CC_WNO_CAST_FUNCTION_TYPE}

.PATH:  ${LIBCRPCDIR}

.include <bsd.prog.mk>
@


1.17
log
@- Enable WARMSTART
- Pass fd to libwrap
- Add blocklist
From Greg A. Woods

- Tidy up debugging
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2019/10/13 07:28:20 mrg Exp $
d33 4
a36 4
COPTS.rpcb_svc_4.c+=	${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.pmap_svc.c+=	${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rpcb_svc.c+=	${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rpcb_svc_com.c+=	${GCC_NO_CAST_FUNCTION_TYPE}
@


1.16
log
@introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION    -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION  -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW    -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE   -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints.  many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2019/04/24 10:27:49 roy Exp $
d15 1
a15 1
CPPFLAGS+=	-I${LIBCRPCDIR} -DPORTMAP -DLIBWRAP
d27 1
d30 2
a31 2
LDADD+= -lwrap -lutil
DPADD+= ${LIBWRAP} ${LIBUTIL}
@


1.15
log
@Fix building rpcbind with MKYP=no

We add enough of the YP headers to security.c so the security checks
can remain as is.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2017/08/17 00:06:00 ginsbach Exp $
d32 5
@


1.14
log
@Revert accidently committed enabling WARMSTART.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2017/08/16 23:38:16 ginsbach Exp $
d21 4
@


1.14.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2019/04/24 10:27:49 roy Exp $
a20 4
.if (${USE_YP} != "no")
CPPFLAGS+=	-DYP
.endif

@


1.14.4.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
#	$NetBSD$
a31 5
COPTS.rpcb_svc_4.c+=	${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.pmap_svc.c+=	${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rpcb_svc.c+=	${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rpcb_svc_com.c+=	${GCC_NO_CAST_FUNCTION_TYPE}

@


1.13
log
@Write the "warm start" file to /var/run rather than /tmp.
(Restore changes clobbered by merge of FreeBSD changes. Hi christos!)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2009/04/22 15:23:07 lukem Exp $
a23 1
CPPFLAGS+= -DWARMSTART
@


1.12
log
@Enable WARNS=4 by default, except for:
	cpuctl  dumplfs  hprop  ipf  iprop-log  kadmin  kcm  kdc  kdigest
	kimpersonate  kstash  ktutil  makefs  ndbootd  ntp  pppd  quot
	racoon  racoonctl  rtadvd  sntp  sup  tcpdchk  tcpdmatch  tcpdump
	traceroute  traceroute6  user  veriexecgen  wsmoused  zic
(Mostly third-party applications)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2007/08/27 19:53:32 dsl Exp $
d24 1
@


1.11
log
@Depracate ND_DEBUG and BIND_DEBUG in favour of RPCBIND_DEBUG.
Add commented out entries for RPCBIND_DEBUG and SVC_RUN_DEBUG in Makefile.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2007/05/28 18:12:06 tls Exp $
a6 1
WARNS=4
@


1.11.14.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2009/04/22 15:23:07 lukem Exp $
d7 1
@


1.10
log
@Since Christos cleaned up the use of libc internals here, we can switch
these from USE_SSP to USE_FORT as they should be.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2007/05/28 14:49:15 christos Exp $
d22 4
@


1.10.4.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2007/08/27 19:53:32 dsl Exp $
a21 4
# Uncomment these to get any useful output from 'rpcbind -d'
# CPPFLAGS+=	-DRPCBIND_DEBUG
# CPPFLAGS+=	-DSVC_RUN_DEBUG

@


1.9
log
@get rid of libc cruft. requested by tls
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2007/05/28 12:06:40 tls Exp $
d5 1
a5 2
USE_FORT?= no	# XXX includes libc internal headers
USE_SSP?= yes	# network client
@


1.8
log
@Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2007/05/13 20:03:46 christos Exp $
d12 1
a12 2
	rpcb_svc.c rpcb_svc_com.c security.c warmstart.c util.c \
	rpc_generic.c
a15 1
LIBCINCLUDE=    ${LIBCDIR}/include
d17 1
a17 1
CPPFLAGS+=      -I${LIBCRPCDIR} -I${LIBCINCLUDE} -DPORTMAP -DLIBWRAP
@


1.7
log
@- WARNS = 4
- De __P
- While starting up, send messages to stderr not syslog.
- Fix error messages
- Don't play with umask and forget to restore it on error
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2005/01/10 02:58:59 lukem Exp $
d5 3
@


1.6
log
@Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2003/12/07 21:57:22 matt Exp $
d5 1
@


1.5
log
@Make building IPv6 support controllable by MKINET6
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2002/09/18 03:54:36 lukem Exp $
d16 2
a17 1
.if (${MKINET6} != "no")
@


1.4
log
@use NETBSDSRCDIR as appropriate
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2000/06/20 13:56:43 fvdl Exp $
d15 4
a18 1
CPPFLAGS+=      -I${LIBCRPCDIR} -I${LIBCINCLUDE} -DPORTMAP -DLIBWRAP -DINET6
@


1.3
log
@Oops, previous should not have been committed.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.2 2000/06/20 13:55:11 fvdl Exp $
d11 1
a11 1
LIBCDIR=        ${.CURDIR}/../../lib/libc
@


1.3.2.1
log
@file Makefile was added on branch minoura-xpg4dl on 2000-06-22 18:01:11 +0000
@
text
@d1 20
@


1.3.2.2
log
@Sync w/ netbsd-1-5-base.
@
text
@a0 20
#	$NetBSD: Makefile,v 1.3.2.1 2000/06/22 18:01:11 minoura Exp $

PROG=	rpcbind
MAN=	rpcbind.8
SRCS=	check_bound.c rpcb_stat.c rpcb_svc_4.c rpcbind.c pmap_svc.c \
	rpcb_svc.c rpcb_svc_com.c security.c warmstart.c util.c \
	rpc_generic.c

LIBCDIR=        ${.CURDIR}/../../lib/libc
LIBCRPCDIR=     ${LIBCDIR}/rpc
LIBCINCLUDE=    ${LIBCDIR}/include

CPPFLAGS+=      -I${LIBCRPCDIR} -I${LIBCINCLUDE} -DPORTMAP -DLIBWRAP -DINET6

LDADD+= -lwrap -lutil
DPADD+= ${LIBWRAP} ${LIBUTIL}

.PATH:  ${LIBCRPCDIR}

.include <bsd.prog.mk>
@


1.2
log
@Free buffer used in xdrmem_create.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2000/06/02 23:15:41 fvdl Exp $
d7 1
a7 1
	rpc_generic.c svc_vc.c
d13 1
a13 1
CPPFLAGS+=      -I${LIBCRPCDIR} -I${LIBCINCLUDE} -DPORTMAP -DLIBWRAP -DINET6 -DRPCBIND_DEBUG
a16 3

CFLAGS+=	-g
LDFLAGS+=	-g
@


1.1
log
@rpcbind, the successor to portmap. Taken from Sun TI-RPC source code,
then modified. This still contains some ugly special casing for
procedures in the security section, but I haven't found a nicer way
so far.
@
text
@d1 1
a1 1
#	$NetBSD$
d7 1
a7 1
	rpc_generic.c
d13 1
a13 1
CPPFLAGS+=      -I${LIBCRPCDIR} -I${LIBCINCLUDE} -DPORTMAP -DLIBWRAP -DINET6
d17 3
@
