Skip to content

Commit

Permalink
Install nscd to sbin/, not bin/
Browse files Browse the repository at this point in the history
  • Loading branch information
pikhq committed Jun 6, 2016
1 parent 5db9af6 commit a728a49
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
srcdir = .
exec_prefix = /usr/local
bindir = $(exec_prefix)/bin
sbindir = $(exec_prefix)/sbin
prefix = /usr/local
includedir = $(prefix)/include
libdir = $(prefix)/lib
Expand Down Expand Up @@ -94,12 +95,15 @@ obj/test/%: $(srcdir)/%.c
$(DESTDIR)$(bindir)/%: obj/%
$(INSTALL) -D $< $@

$(DESTDIR)$(sbindir)/%: obj/%
$(INSTALL) -D $< $@

$(DESTDIR)$(includedir)/%: $(srcdir)/include/%
$(INSTALL) -D -m 644 $< $@

install-headers: $(DESTDIR)$(includedir)/nss.h

install-tools: $(TOOLS:obj/%=$(DESTDIR)$(bindir)/%)
install-tools: $(TOOLS:obj/%=$(DESTDIR)$(sbindir)/%)

install: install-tools install-headers

Expand Down
1 change: 1 addition & 0 deletions config.mak.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
srcdir = .
prefix = /usr/local
exec_prefix = $(prefix)
sbindir = $(exec_prefix)/sbin
bindir = $(exec_prefix)/bin
libdir = $(prefix)/lib
includedir = $(prefix)/include
Expand Down
3 changes: 3 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Installation directories:
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system executables [EPREFIX/sbin]
--libdir=DIR library files for the linker [PREFIX/lib]
--includedir=DIR include files for the C compiler [PREFIX/include]
--syslibdir=DIR location for the dynamic linker [/lib]
Expand Down Expand Up @@ -133,6 +134,7 @@ LDLIBS_AUTO=
srcdir=
prefix=/usr/local/
exec_prefix='$(prefix)'
sbindir='$(exec_prefix)/sbin'
bindir='$(exec_prefix)/bin'
libdir='$(prefix)/lib'
includedir='$(prefix)/include'
Expand Down Expand Up @@ -390,6 +392,7 @@ cat << EOF
srcdir = $srcdir
prefix = $prefix
exec_prefix = $exec_prefix
sbindir = $sbindir
bindir = $bindir
libdir = $libdir
includedir = $includedir
Expand Down

0 comments on commit a728a49

Please sign in to comment.