10ce67886d
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
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
# Generic system definitions
|
|
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
|
# All rights reserved. Released under the 2-clause BSD license.
|
|
|
|
AR?= ar
|
|
CP?= cp
|
|
ECHO?= echo
|
|
INSTALL?= install
|
|
RANLIB?= ranlib
|
|
SED?= sed
|
|
SH= /bin/sh
|
|
|
|
PREFIX?=
|
|
_UPREFIX_SH= case "${PREFIX}" in "") echo /usr;; *) echo "${PREFIX}";; esac
|
|
_UPREFIX!= ${_UPREFIX_SH}
|
|
UPREFIX= ${_UPREFIX}$(shell ${_UPREFIX_SH})
|
|
LOCAL_PREFIX= /usr/local
|
|
|
|
PICFLAG?= -fPIC
|
|
|
|
SYSCONFDIR?= ${PREFIX}/etc
|
|
INITDIR?= ${SYSCONFDIR}/init.d
|
|
CONFDIR?= ${SYSCONFDIR}/conf.d
|
|
LOCALDIR?= ${SYSCONFDIR}/local.d
|
|
|
|
BINDIR?= ${PREFIX}/sbin
|
|
BINMODE?= 0755
|
|
|
|
INCDIR?= ${UPREFIX}/include
|
|
INCMODE?= 0444
|
|
|
|
_LIBNAME_SH= case `readlink /lib` in /lib64|lib64) echo "lib64";; *) echo "lib";; esac
|
|
_LIBNAME!= ${_LIBNAME_SH}
|
|
LIBNAME?= ${_LIBNAME}$(shell ${_LIBNAME_SH})
|
|
LIBDIR?= ${UPREFIX}/${LIBNAME}
|
|
LIBMODE?= 0444
|
|
SHLIBDIR?= ${PREFIX}/${LIBNAME}
|
|
|
|
LIBEXECDIR?= ${PREFIX}/libexec/rc
|
|
|
|
MANPREFIX?= ${UPREFIX}/share
|
|
MANDIR?= ${MANPREFIX}/man
|
|
MANMODE?= 0444
|
|
|
|
DOCDIR?= ${UPREFIX}/share/doc
|
|
DOCMODE?= 0644
|
|
|
|
CONFMODE?= 0644
|