aboutsummaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)Author
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
2009-05-01Add (c) to CopyrightRoy Marples
2009-04-30Go back to gitRoy Marples
2009-04-24Remove .depend before creating it.Roy Marples
2009-01-12Add snapshot and snap targetsRoy Marples
2008-12-07Fix dist for svnRoy Marples
2008-12-04make ignore now updates svn:ignore as different OS's have different targets.Roy Marples
2008-12-04make ignore now configures the sv:ignore property.Roy Marples
2008-10-20Really fix .dependRoy Marples
2008-10-20Enable use of .depend on gmake. Also, generate extra dependencies for our ↵Roy Marples
shared libraries.
2008-10-15Compile with FreeBSD 6.x makeRoy Marples
2008-09-18Use better CFLAGS - some new warnings will need to be fixed.Roy Marples
2008-06-19Use CPPFLAGS so we work with -combine in CFLAGS.Roy Marples
2008-04-29We need to ensure that the init script started is correct, translating ↵Roy Marples
symlinks. This has a new rule - multiplexed services must exist in the same dir as the master sript. So we need to ensuret that net.lo(0) is the real script and not a symlink itself. This fixes Gentoo #219526.
2008-03-28Put some dir locations in rc.h so that 3rd party apps can become awware of them.Roy Marples
2008-03-26Add license blurb to a few files and append my email to my name.Roy Marples
2008-03-26Add license blurb to a few files and append my email to my name.Roy Marples
2008-03-26No more need for SUBOSRoy Marples
2008-03-26use $CP and $SED instead of cp and sedRoy Marples
2008-03-26Fix some more prefix stuff.Roy Marples
2008-03-25Fix mandir install.Roy Marples
2008-03-25Allow MANPREFIX to work.Roy Marples
2008-03-25DIR should be prefixed already.Roy Marples
2008-03-25Rework our folder structure so that we don't have OS specific dirs, making ↵Roy Marples
it easier to share init and conf files per OS.
2008-03-24Add debug.mkRoy Marples