aboutsummaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)Author
2019-02-11fix build with muslcAustin English
This fixes #261.
2018-12-08standardize the default shellWilliam Hubbs
I do not know of a need to have the default shell be a build-time configurable setting. All *nix systems I am aware of have /bin/sh as a default posix compatible shell. If some systems running OpenRC do not make that assumption about /bin/sh, I will consider bringing this back, so feel free to open an issue.
2018-05-11build: standardize installation modesWilliam Hubbs
Gentoo was changing some of our installation modes from 0444 to 0644. There isn't a reason to install things 0444, so we are switching these to 0644 so the Gentoo ebuild doesn't need this extra step.
2018-05-01Add _POSIX_C_SOURCE definition to Linux buildWilliam Hubbs
We need this to allow builds on uclibc-ng based systems. X-Gentoo-Bug: 650908 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=650908
2018-03-14Use _BSD_SOURCE on FreeBSDWilliam Hubbs
2018-03-14typo fixWilliam Hubbs
2018-03-13Remove _XOPEN_SOURCE macros from buildsWilliam Hubbs
2018-03-13Add _POSIX_C_SOURCE macro to FreeBSD buildWilliam Hubbs
2018-03-01fix build on FreeBSDWilliam Hubbs
2017-12-07Add zsh-completion supportWilliam Hubbs
2017-12-06add bash completion supportWilliam Hubbs
This fixes #188.
2017-05-30mk/cc.mk: make implicit function declarations fatal (#136)Sergei Trofimovich
Avoids issues with missing prototypes causing truncation of pointers. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2017-02-18install support filesWilliam Hubbs
These files have been in the distribution for some time but haven't been installed. They are good examples of how to do things, so we should install them.
2017-01-04Drop the use of the _BSD_SOURCE macro on LinuxBenda Xu
X-Gentoo-Bug: 604666 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604666
2017-01-04Drop the use of the _BSD_SOURCE macro on GNU/HurdBenda Xu
X-Gentoo-Bug: 604666 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604666
2016-09-23dist: convert to tar.gzWilliam Hubbs
This allows the "make dist" target to be used as well as the github archive generation.
2016-07-13Build: fix hardcoded pkg-config invocationJulian Ospald
This fixes #89.
2016-06-13Fix PATH for Prefix.Benda Xu
1. remove default /bin:/sbin:/usr/bin:/usr/sbin 2. PKG_PREFIX should be defaulted to $(PREFIX)/usr 3. LOCAL_PREFIX should be defaulted to $(PREFIX)/usr/local X-Gentoo-Bug:583634 X-Gentoo-Bug-URL:https://bugs.gentoo.org/show_bug.cgi?id=583634
2015-12-21Convert OpenRC to a centralized copyright/license structureWilliam Hubbs
In the past, OpenRC was a hybrid of a centralized and file-scope license/copyright structure. I followed the instructions from the Software Freedom Law Center [1] to convert to a Centralized structure where possible, for easier future maintenance. [1] https://softwarefreedom.org/resources/2012/ManagingCopyrightInformation.html
2015-05-01Build: make snapshot remove .git directory from tarballWilliam Hubbs
2015-04-30Build: fix the dist targetWilliam Hubbs
The dist target now creates an archive based on the version setting. This makes it possible to create an archive identical to the ones github generates once the release is tagged.
2015-03-24Silence warning about _DEFAULT_SOURCE for Linux/glibcWilliam Hubbs
In >=glibc-2.20, the _BSD_SOURCE macro is deprecated in favor of _DEFAULT_SOURCE. This adds -D_DEFAULT_SOURCE to CPPFLAGS on Linux. Fixes #44
2015-03-21mk/os-GNU.mk: fix typoWilliam Hubbs
MAX_PATH should have been PATH_MAX
2015-02-18ChangeLog: show authors and committersWilliam Hubbs
2015-01-24Prioritize local includes and librariesWill Miles
This fixes #35.
2014-12-08Do not call the shell to evaluate CHANGELOG_LIMITWilliam Hubbs
The git log command understands dates such as "1 year ago", so there is no need to use the date command.
2014-12-07Add target to create ChangeLogWilliam Hubbs
This was added by request because some users are requesting a ChangeLog. This fixes #29.
2014-12-05rename git.mk to gitver.mkWilliam Hubbs
This is a more descriptive name since this file only sets the gitver variable.
2014-11-03Integrate the functionality from runscript_selinux.soJason Zaman
runscript used to dlopen() runscript_selinux.so. This adds equivalent functionality directly in to runscript instead. It authenticates with either PAM or shadow and optionally has a dep on audit. X-Gentoo-Bug: 517450 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=517450
2014-10-26Pass ncurses cflags to buildJohan Bergström
Fixes #25 Note from William Hubbs: The original patch overwrote CFLAGS. I modified this patch to add the ncurses cflags to CPPFLAGS instead of overwriting CFLAGS.
2014-10-23add missing files for GNU/HurdSvante Signell
2014-10-22Add missing files for GNU/kFreeBSDGabriele Giacone
2014-07-15Add SELinux support to the build systemWilliam Hubbs
X-Gentoo-Bug: 516956 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956
2013-10-30Begin port to GNU/kFreeBSDSteven Chamberlain
This is just a minimal port to get Debian up and running; the rest will be done later.
2013-08-13Remove gentoo's net.* scriptsWilliam Hubbs
It has been determined that it will be best for gentoo's net.* scripts to be in a separate package to allow independent development. This package will be called netifrc and maintained by Gentoo.
2013-07-25Add support for DragonFly BSDGary
2013-02-23make BINDIR and SBINDIR available to input filesAndrew Gregory
BINDIR and SBINDIR can be set independently of PREFIX and may not be set to PREFIX/bin as scripts currently assume. Note from William Hubbs: This adds @BINDIR@ and @SBINDIR@ macros to the sed commands run to convert *.in files to the executable form. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2013-02-23add SBINDIR variable to sys.mkAndrew Gregory
BINDIR was pointing to PREFIX/sbin which was confusing and inconsistent with src/rc/Makefile. Add SBINDIR and redefine BINDIR appropriately. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2013-02-23build: use pkg-config to find ncurses libraries if it is availableWilliam Hubbs
If ncurses was built with the --with-termlib switch enabled, tgoto, tgetent and tgetstr move to libtinfo. Fortunately, ncurses provides a pkg-config file which we can use if pkg-config is installed. If it is not, we still link to -lncurses for now, so pkg-config is not a hard requirement. Reported-by: jan.paesmans@gmail.com X-Gentoo-Bug: 455912 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=455912
2012-08-31Fix UPREFIX for Gentoo Prefix installationsWilliam Hubbs
Make sure UPREFIX in our make files gets set correctly when MKPREFIX=yes. In this situation, UPREFIX should be ${PREFIX}/usr. Reported-by: <heroxdb@gentoo.org> X-Gentoo-Bug: 415899 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=415899
2012-08-31fix typoWilliam Hubbs
2012-08-31add MKPREFIX flag to build systemWilliam Hubbs
This allows building OpenRC for a Gentoo Prefix installation.
2012-02-20Drop rc_sys definition from build systemWilliam Hubbs
2012-02-09sysctl.d: Include a README file for /etc/sysctl.d/Robin H. Johnson
Our sysctl script has read from /etc/sysctl.d/ but the directory was not created by default, and we didn't document it. X-Gentoo-Bug: 398189 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=398189 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-01-23Respin features.h usage so that we correctly test for features before we use ↵Robin H. Johnson
them. Some BSD libc implementations may have one or the other flag, but not both. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-01-22WhitespaceChristian Ruppert
2011-11-18Add MKSTATICLIBS switchWilliam Hubbs
The MKSTATICLIBS switch, which defaults to yes, controls whether or not static libraries are built and installed. Reported-by: Agostino Sarubbo <ago@autistici.org> x-Gentoo-Bug: 378267 x-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=378267
2011-10-29Use pattern rules instead of suffix rulesWilliam Hubbs
Rework the makefiles to use pattern rules instead of suffix rules. This is the preferred way to write implicit rules according to the gnu make manual.
2011-10-20further clean up OS differences in makefilesMike Frysinger
No need for if() logic. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>