Install binaries under /usr/sbin instead of /sbin
This commit is contained in:
parent
67ba1a18c3
commit
f8cf76e577
14
Makefile
14
Makefile
@ -104,15 +104,15 @@ install-sysconfig: $(pck_sysconfig)
|
||||
|
||||
install-scripts: $(pck_scripts)
|
||||
@echo "installing logrotate file...";\
|
||||
$(INSTALL_DIR) $(DESTDIR)$(sbin)
|
||||
$(INSTALL_SCRIPT) $^ $(DESTDIR)$(sbin)
|
||||
$(INSTALL_SCRIPT) scripts/update-alternatives-set-dri $(DESTDIR)$(sbin)
|
||||
sed -i "s|@LIBDIR@|$(libdir)|" $(DESTDIR)$(sbin)/update-alternatives-set-dri
|
||||
$(INSTALL_DIR) $(DESTDIR)$(sbindir)
|
||||
$(INSTALL_SCRIPT) $^ $(DESTDIR)$(sbindir)
|
||||
$(INSTALL_SCRIPT) scripts/update-alternatives-set-dri $(DESTDIR)$(sbindir)
|
||||
sed -i "s|@LIBDIR@|$(libdir)|" $(DESTDIR)$(sbindir)/update-alternatives-set-dri
|
||||
|
||||
install-programs: install-plugins install-scripts install-defs
|
||||
@echo "installing $(PACKAGE)..."
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(sbin)
|
||||
$(INSTALL_SCRIPT) $(pck_postplug) $(DESTDIR)$(sbin)/$(PACKAGE)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(sbindir)
|
||||
$(INSTALL_SCRIPT) $(pck_postplug) $(DESTDIR)$(sbindir)/$(PACKAGE)
|
||||
$(INSTALL_DIR) $(DESTDIR)$(postplugnewdir)
|
||||
|
||||
install: \
|
||||
@ -124,7 +124,7 @@ install: \
|
||||
install-udev-files
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(sbin)/$(PACKAGE)
|
||||
rm -f $(DESTDIR)$(sbindir)/$(PACKAGE)
|
||||
for f in $(notdir $(pck_plugins)); do\
|
||||
rm -f $(DESTDIR)$(postplugdir)/$${f##[0-9][0-9]};\
|
||||
rm -f $(DESTDIR)$(postplugrcdir)/$$f;\
|
||||
|
@ -7,7 +7,7 @@ Before=sysinit.target
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/sbin/postplug
|
||||
ExecStart=/usr/sbin/postplug
|
||||
TimeoutSec=90
|
||||
|
||||
[Install]
|
||||
|
Loading…
Reference in New Issue
Block a user