summaryrefslogtreecommitdiffstats
path: root/etc/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| | | | from the latter.
* Add placeholder Kyuafiles for various top-level hierarchies.jmmv2014-04-211-0/+4
| | | | | | | | | | | | This change adds tests/ directories in the source tree to create various subdirectories in /usr/tests/ and to install placeholder Kyuafiles for them. the relevant hierarchies are: cddl, etc, games, gnu and secure. The reason for this is to simplify the addition of new test programs for utilities or libraries under any of these directories. Doing so on a case by case basis is unnecessary and is quite an obscure process.
* Always install pkg.conf. Don't depend on MK_PKGBOOTSTRAP.bdrewery2014-04-131-2/+0
| | | | | | | | | This file is used by pkg(8) from ports as well. Someone may choose to not install pkg(7) but still want to consume official packages by building or installing pkg(8) manually. Discussed with: bapt MFC after: 1 day (Working on EN)
* Rename WITHOUT_DMA into WITHOUT_DMAGENT to avoid confusionbapt2014-02-221-1/+1
| | | | Requested by: ian
* Install a default configuration file for dmabapt2014-02-211-0/+3
| | | | Suggested by: flo
* Temporarily turn off the services.db generation during distributeworld.gjb2014-01-251-2/+0
| | | | | | | I'll work on an update to test for endianness-compatibility. Submitted by: many Sponsored by: The FreeBSD Foundation
* Disable output about duplicate services, which were not output duringgjb2014-01-221-1/+1
| | | | | | | | testing. MFC after: 1 month X-MFC-After: r261031 Sponsored by: The FreeBSD Foundation
* Generate /var/db/services.db during 'make distribution' so that it isjhb2014-01-221-0/+2
| | | | | | | | present during new installs. Update etcupdate and mergemaster to ignore the generated file. Tested by: gjb (release build) MFC after: 1 month
* Please welcome casperd daemon. It (and its services) will be responsible forpjd2013-12-021-0/+3
| | | | | | | | | | | | | | | | | | | giving access to functionality that is not available in capability mode sandbox. The functionality can be precisely restricted. Start with the following services: - system.dns - provides API compatible to: - gethostbyname(3), - gethostbyname2(3), - gethostbyaddr(3), - getaddrinfo(3), - getnameinfo(3), - system.grp - provides getgrent(3)-compatible API, - system.pwd - provides getpwent(3)-compatible API, - system.random - allows to obtain entropy from /dev/random, - system.sysctl - provides sysctlbyname(3-compatible API. Sponsored by: The FreeBSD Foundation
* Move all atf directories to the tests mtree.jmmv2013-11-161-1/+1
| | | | | | | | | This is to ensure that test-related directories don't get needlessly created (and later deleted) when MK_TESTS=no. Problem found by jhb@. Approved by: rpaulo (mentor)
* Move /etc/keys to /usr/share/keys where users are less likely to modify them.bdrewery2013-10-291-1/+0
| | | | | Requested by: secteam (cperciva, des) Approved by: bapt
* Add infrastructure for installing pkg(8) keys into /etc/keys/pkg and addbdrewery2013-10-261-0/+1
| | | | | | | | the current test key that packages will be signed with until 10.0-RELEASE. Approved by: bapt Discussed by: bapt with des MFC after: 2 days
* Add support for reading configuration files from /etc/pkg.bdrewery2013-10-261-0/+3
| | | | | | | | | | | | | | | | For now only /etc/pkg/FreeBSD.conf is supported. Its style is: Repo: { URL: "...", MIRROR_TYPE: "...", ... } The configuration will be read from /usr/local/etc/pkg.conf if exists, otherwise /etc/pkg/FreeBSD.conf Approved by: bapt MFC after: 2 days
* Set up the /usr/tests hierarchy.rpaulo2013-10-251-0/+6
| | | | | | | | | | | | | | | | | | | Populate /usr/tests with the only test programs that currently live in the tree (those in lib/libcrypt/tests/) and add all the build machinery to accompany this change. In particular: - Add a WITHOUT_TESTS variable that users can define to request that no tests be put in /usr/tests. - Add a top-level Kyuafile for /usr/tests and a way to create similar Kyuafiles in top-level subdirectories. - Add a BSD.tests.dist file to define the directory layout of /usr/tests. Submitted by: Julio Merino jmmv google.com Reviewed by: sjg MFC after: 2 weeks
* Remove most of the ATF tools and the _atf user.rpaulo2013-10-121-3/+0
| | | | | | | | This is necessary because ATF is deprecated and it will be replaced by Kyua. Submitted by: jmmv@netbsd.org Reviewed by: Garrett Cooper Approved by: re
* Remove BIND.des2013-09-301-20/+0
| | | | Approved by: re (gjb)
* Replace the unused /etc/unbound directory with a symlink to /var/unbound.des2013-09-241-0/+5
| | | | Approved by: re (blanket)
* The correct variable is apparently MACHINE_ARCH, not TARGET_ARCH.des2013-09-091-1/+1
| | | | Approved by: re (blanket)
* Remove unneeded mappings from libmap32.conf. Move it up one level anddes2013-09-091-2/+2
| | | | | | | install it on powerpc64 in addition to amd64. Reviewed by: kib Approved by: re (blanket)
* Add a stock libmap32.conf for amd64. The first two lines have no effectdes2013-09-081-0/+4
| | | | | | | | | | | except to document the hardcoded standard library search path for 32-bit binaries. The third line performs the equivalent substitution for the private library directory. Ironically, these entries rely on functionality which is only available in the COMPAT_32BIT version of rtld-elf. Approved by: re (blanket)
* Include /usr/local/etc/libmap.d/ by default.jlh2013-08-011-0/+1
| | | | | | | PR: 180568 Reviewed by: bapt Obtained from: kib MFC after: 3 days
* Add a new knob WITH_DEBUG_FILES to control the building of standaloneemaste2013-06-071-0/+6
| | | | | | | | | | | | | | | | debug files for userland programs and libraries. The "-g" debug flag is automatically applied when WITH_DEBUG_FILES is set. The debug files are now named ${prog}.debug and ${shlib}.debug for consistency with other systems and documentation. In addition they are installed under /usr/lib/debug, to simplify the process of installing them if needed after a crash. Users of bsd.{prog,lib}.mk outside of the base system place the standalone debug files in a .debug subdirectory. GDB automatically searches both of these directories for standalone debug files. Thanks to everyone who contributed changes, review, and testing during development.
* Make an attempt to detect missing MTREE files in distrib-dirs. Notbrooks2013-04-301-1/+1
| | | | | | | | perfect, but this is just a developer seatbelt. PR: conf/176897 Submitted by: Garrett Cooper <yaneurabeya@gmail.com> MFC after: 1 week
* Back out prev. change preventing /sys/sys symlink. It appears my installache2013-02-221-1/+1
| | | | was not very recent and not acts like 'ln -h'
* In 'make hierarchy' don't install /sys/sys pointing to usr/src/sysache2013-02-171-1/+1
| | | | but just /sys pointing there
* When adding the directory ownership to the METALOG do it by name ratherbrooks2013-01-301-3/+4
| | | | | | | | than number as is done in install so as to differ binding of names to ids. Remove the -W flag from the mtree command so that the correct user and group is recorded rather than the default.
* Log the addition of login.conf.db, passwd, pwd.db, and spwd.db via cat -l.brooks2013-01-291-3/+15
| | | | Make cat a bootstrap tool to facilitate this.
* Introduce a new option -DNO_ROOT that allows install and distributionbrooks2013-01-221-0/+17
| | | | | | | | | | | | | | | targets to be run without root privilege. Information about ownership, group, flags, and suid bits are stored in the file specified by METALOG which defaults to ${DESTDIR}/METALOG. This file can be used in conjunction with bsdtar or makefs to generate archives or file system images with correct permissions. The packageworld target has been altered to use this metadata allowing non-root releases (subject to further changes in release/Makefile.) Sponsored by: DARPA, AFRL Reviewed by: ian, ray
* Replace all known uses of ln in the build process with appropriatebrooks2013-01-211-7/+10
| | | | | | | | install -l invocations via new INSTALL_LINK and INSTALL_SYMLINK variables. Sponsored by: DARPA, AFRL Reviewed by: ian, ray, rpaulo
* In r245571, "rm -rf <foo>; ln -s <bar> <foo>" needed to be replaced withbrooks2013-01-171-7/+7
| | | | | | | | | "ln -sfh <bar> <foo>" or the links would fail when a valid link to a directly was in place at <foo>. Reported by: peter Tested by: peter Pointy hat to: brooks
* In preparation for logging metadata about each filesystem objectbrooks2013-01-171-19/+13
| | | | | | | | | | | | refactor the link section of distrib-dirs to alwasy install to a full path (the link contents remain relative as they should). Eliminate the use of the "rm -r[f] <foo>; ln -s <bar> <foo>" pattern in favor of "ln -sf <bar> <foo>". None of these links could be directories on a system installed in the last decade. Sponsored by: DARPA, AFRL Reviewed by: mtree
* Rework the mtree portion of etc/Makefile's distrib-dirs target to runbrooks2013-01-171-12/+23
| | | | | | | | mtree in a shell loop so there is only one mtree commandline. Move the implementation of LOCAL_MTREE into etc/Makefile. Sponsored by: DARPA, AFRL Reviewed by: mtree :)
* Add an option DB_FROM_SRC to use src/etc's user/group databases whenbrooks2013-01-151-8/+10
| | | | | | | | | | | | | installing. This allows things like running installworld for 10-CURRENT on a 9.0-RELEASE system without adding extra users and groups to the passwd and group files. To prevent potentially risky uid/gid mismatches on systems with non-standard local values, require that DESTDIR be set if DB_FROM_SRC is set. Sponsored by: DARPA, AFRL Reviewed by: peter
* Revert r245316. Systems with non-standard uids/gids are more prevalentbrooks2013-01-111-10/+8
| | | | | that I'd feared. Discussion is ongoing about the scope of a safer solution.
* Use the -N option to install and nmtree to eliminate the need for thebrooks2013-01-111-8/+10
| | | | | | checks for missing users and groups. Sponsored by: DARPA, AFRL
* Using set -x produces output on stderr instead of stdout.eadler2012-11-151-4/+2
| | | | | | | | | | | It also doesn't work with make -s. Prefer the use of builtin make features. PR: misc/126312 Reported by: Nejc Skoberne <nejc@skoberne.net> Submitted by: bdrewery Approved by: cperciva MFC after: 1 week
* Add ATF to the build. This is may be a bit rought around the egdes,marcel2012-10-221-0/+3
| | | | | | | | | | | | | | | | | but committing it helps to get everyone on the same page and makes sure we make progress. Tinderbox breakages that are the result of this commit are entirely the committer's fault -- in other words: buildworld testing on amd64 only. Credits follow: Submitted by: Garrett Cooper <yanegomi@gmail.com> Sponsored by: Isilon Systems Based on work by: keramida@ Thanks to: gnn@, mdf@, mlaier@, sjg@ Special thanks to: keramida@
* Finally nuke auth.conf, nine years after it was deprecated. The onlydes2012-06-121-2/+1
| | | | | | | | | | | | | | | | | | thing it was still used for was to set the "global default" password hash. Since the stock auth.conf contained nothing but comments, the global default was actually the first algorithm in crypt(3)'s list, which happens to be DES; I take the fact that nobody noticed as proof that it was not used outside of crypt(3). The only other use in our tree was in the Kerberos support code in in tinyware's passwd(1). I removed that code in an earlier commit; it would not have compiled anyway, as it only supported Kerberos IV. The auth_getval() function is now a stub that always returns NULL, which has the same effect as a functional auth_getval() with an empty auth.conf. MFC after: 3 weeks
* Style: prefer the use of line continuations to +=eadler2012-02-171-42/+42
| | | | | | Requested by: marcel, dougb, bde Approved by: cperciva MFC after: 3 days
* Make etc/Makefile more conflict resistanteadler2012-02-091-12/+42
| | | | | | | PR: conf/163789 Submitted by: gcooper (iXsystems) Approved by: cperciva MFC after: 3 days
* Revert r224760, and enhance the sed patterns from r224659 to comment outdougb2011-08-101-0/+4
| | | | | | the _compat entries in the WITHOUT_NIS case rather then delete them. Approved by: re (kib)
* Rather than edit the nsswitch.conf file based on ${MK_NIS} == "no"dougb2011-08-061-4/+0
| | | | | | | | | | comment out the NIS _compat options by default, but leave them in the file for the convenience of users who want to enable it. Update the comment in the file accordingly. Reviewed by: ed Approved by: re (hrs)
* Remove NIS entries from /etc/nsswitch.conf for WITHOUT_NIS.ed2011-08-051-0/+4
| | | | | | | | | | We already modify various configuration files in /etc based on build configuration. This is not done for nsswitch.conf right now when setting WITHOUT_NIS. This breaks various utilities, including crond, that depend on working databases. Approved by: re (kib) MFC after: 1 month
* Flesh out WITHOUT_GROFF support to DTRT.uqs2011-02-221-0/+3
| | | | | | | | | | | | A full featured groff is required during buildworld, so build it always and don't rely on it being present on the host system. vgrind(1) is tightly coupled to a roff processor and will not be built/installed when groff is disabled. Also much of the roff'ed documentation under share/doc will not be built/installed when WITHOUT_GROFF is defined. Reviewed by: ru (partial)
* No longer install /etc/manpath.config since the BSDL man utilitiesgordon2010-10-041-4/+0
| | | | | | don't use it. Approved by: wes (mentor)
* device.hints: do install when WITHOUT_BOOT is setavg2010-06-161-0/+2
| | | | | Discussed with: imp MFC after: 2 weeks
* Merge from tbemd, with minor tweaks:imp2010-06-131-1/+5
| | | | | | Search from most specific ($MACHINE) to least specific ($MACHINE_CPUARCH) when looking for the tty file to use. Also add an .error case if none exist.
* Add a new build option, MAN_UTILS. This option lets you control buildingjkim2010-05-191-1/+1
| | | | | | | | | utilities and related support files for manual pages, which were previously controlled by MAN. For POLA, the default depends on MAN, i.e., WITHOUT_MAN implies WITHOUT_MAN_UTILS and WITH_MAN implies WITH_MAN_UTILS. This patch is slightly improved by me from: PR: misc/145212
* Slightly improve my previous commit.ed2010-03-191-1/+1
| | | | | | Just comment out the atrun line instead of completely removing it. It is not a bad idea to leave it as a reference in case someone decides to install atrun by hand afterwards.
* Don't add the atrun-line to the crontab when MK_AT is set.ed2010-03-191-0/+3
| | | | | | This prevents spurious calls to sendmail every 5 minutes. MFC after: 1 week
OpenPOWER on IntegriCloud