Distinguish between MAN_OWNER and MAN_GROUP, introduce MAN_PERMS and
also $(prefix) for convenience
This commit is contained in:
parent
e9c3de7bfd
commit
14fb61b562
19
Makefile
19
Makefile
@ -9,8 +9,10 @@ LDFLAGS= -s
|
|||||||
|
|
||||||
# Look where your install program is.
|
# Look where your install program is.
|
||||||
INSTALL = /usr/bin/install
|
INSTALL = /usr/bin/install
|
||||||
BINDIR = /usr/sbin
|
|
||||||
MANDIR = /usr/man
|
# Destination paths, set prefix=/opt if required
|
||||||
|
BINDIR = $(prefix)/usr/sbin
|
||||||
|
MANDIR = $(prefix)/usr/share/man
|
||||||
|
|
||||||
# There is one report that under an all ELF system there may be a need to
|
# There is one report that under an all ELF system there may be a need to
|
||||||
# explicilty link with libresolv.a. If linking syslogd fails you may wish
|
# explicilty link with libresolv.a. If linking syslogd fails you may wish
|
||||||
@ -35,8 +37,9 @@ FSSTND = -DFSSTND
|
|||||||
# The following define establishes ownership for the man pages.
|
# The following define establishes ownership for the man pages.
|
||||||
# Avery tells me that there is a difference between Debian and
|
# Avery tells me that there is a difference between Debian and
|
||||||
# Slackware. Rather than choose sides I am leaving it up to the user.
|
# Slackware. Rather than choose sides I am leaving it up to the user.
|
||||||
MAN_OWNER = root
|
MAN_USER = root
|
||||||
# MAN_OWNER = man
|
MAN_GROUP = root
|
||||||
|
MAN_PERMS = 644
|
||||||
|
|
||||||
# The following define establishes the name of the pid file for the
|
# The following define establishes the name of the pid file for the
|
||||||
# syslogd daemon. The library include file (paths.h) defines the
|
# syslogd daemon. The library include file (paths.h) defines the
|
||||||
@ -117,7 +120,7 @@ install_exec: syslogd klogd
|
|||||||
${INSTALL} -m 500 -s klogd ${BINDIR}/klogd
|
${INSTALL} -m 500 -s klogd ${BINDIR}/klogd
|
||||||
|
|
||||||
install_man:
|
install_man:
|
||||||
${INSTALL} -o ${MAN_OWNER} -g ${MAN_OWNER} -m 644 sysklogd.8 ${MANDIR}/man8/sysklogd.8
|
${INSTALL} -o ${MAN_USER} -g ${MAN_GROUP} -m ${MAN_PERMS} sysklogd.8 ${MANDIR}/man8/sysklogd.8
|
||||||
${INSTALL} -o ${MAN_OWNER} -g ${MAN_OWNER} -m 644 syslogd.8 ${MANDIR}/man8/syslogd.8
|
${INSTALL} -o ${MAN_USER} -g ${MAN_GROUP} -m ${MAN_PERMS} syslogd.8 ${MANDIR}/man8/syslogd.8
|
||||||
${INSTALL} -o ${MAN_OWNER} -g ${MAN_OWNER} -m 644 syslog.conf.5 ${MANDIR}/man5/syslog.conf.5
|
${INSTALL} -o ${MAN_USER} -g ${MAN_GROUP} -m ${MAN_PERMS} syslog.conf.5 ${MANDIR}/man5/syslog.conf.5
|
||||||
${INSTALL} -o ${MAN_OWNER} -g ${MAN_OWNER} -m 644 klogd.8 ${MANDIR}/man8/klogd.8
|
${INSTALL} -o ${MAN_USER} -g ${MAN_GROUP} -m ${MAN_PERMS} klogd.8 ${MANDIR}/man8/klogd.8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user