aboutsummaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)Author
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>
2011-05-28cc.mk: move debug.mk out of end MakefilesMike Frysinger
Since we always want debug.mk whenever we include cc.mk, move the include out of the Makefiles and into cc.mk itself. This also fixes an include order bug in rc/Makefile where debug.mk is included before cc.mk and breaks the default CFLAGS setup in cc.mk. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-28cc.mk: enable -g by defaultMike Frysinger
Can do no harm! Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-04-01remove hard coded directory paths from link flagsWilliam Hubbs
Currently, we do not see a reason for these, and it causes an issue for cross compilation. X-Gentoo-Bug: 361465 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=361465
2011-03-05allow default rc_sys value to be set at build timeWilliam Hubbs
This allows the default value of rc_sys to be set when openrc is compiled. This will allow openrc to be installed, e.g. on vserver guests and will allow them to be rebooted without the need to edit rc.conf. This patch is a combined effort between myself and Robin Johnson. X-Gentoo-Bug: 357247 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=357247
2011-02-04rework pam, ncurses and termcap include filesWilliam Hubbs
This allows error checking inside the included files instead of either including the appropriate file or a blank file. Also the blank file named .mk gets removed by this change.
2011-02-04remove BSD make code to handle including .dependWilliam Hubbs
2011-02-04use make conditional for -cstd flagWilliam Hubbs
cc.mk was using ashell call to determine the value of the cstd variable. This reworks that code so it uses a make conditional.
2011-01-31use immediate evaluation for shell callsWilliam Hubbs
This reworks the shell calls in the makefiles to use immediate evaluation and should improve parallel building. X-Gentoo-Bug: 289264 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=289264
2011-01-20change local to run programsWilliam Hubbs
This changes the local service so that it will run programs located in @sysconfdir@/local.d instead of the local_start and local_stop functions from @sysconfdir@/conf.d/local. The advantage for the user is that these programs are not part of the openrc package, so the user does not have to worry about them being overwritten when openrc is upgraded. X-Gentoo-Bug: 351465 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=351465
2011-01-17dist.mk: add a standard "distcheck" targetMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-14bug #351622: Use CFLAGS during linking.Nathan Phillip Brink
Fix compilation on portage-multilib.
2009-05-23Move non compiled libraries from /lib/rc to /libexec/rcRoy Marples
OpenRC version is now stored as plaintext in /libexec/rc/version Plugins (cursplash, splashutils) will have to be re-compiled to pickup the new directories. State data needs to be moved from /lib/rc/init.d to /libexec/rc/init.d as well.
2009-05-02We shouldn't use -L/libRoy Marples