diff options
-rw-r--r-- | Makefile.defs.in | 1 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | files/Makefile.in | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.defs.in b/Makefile.defs.in index 502f3748..3fee9c22 100644 --- a/Makefile.defs.in +++ b/Makefile.defs.in @@ -5,6 +5,7 @@ LEX = @LEX@ YACC = @YACC@ MKDIR_P = @MKDIR_P@ INSTALL = @INSTALL@ +SED = @SED@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ diff --git a/configure.ac b/configure.ac index 811d7e22..ca14d835 100644 --- a/configure.ac +++ b/configure.ac @@ -23,6 +23,7 @@ AC_SUBST([CONFIG_DEBUG]) AC_PROG_CC AC_PROG_MKDIR_P AC_PROG_INSTALL +AC_PROG_SED AC_CHECK_PROG(CONFIG_MAN, docbook2x-man, y, n) if test "$CONFIG_MAN" != "y" diff --git a/files/Makefile.in b/files/Makefile.in index c3643df2..dc237e23 100644 --- a/files/Makefile.in +++ b/files/Makefile.in @@ -2,3 +2,4 @@ install: @echo -e " INSTALL\tfiles" $(MKDIR_P) $(DESTDIR)/$(confdir) $(INSTALL) -m 755 -p $(SUBDIR)nftables/* $(DESTDIR)/$(confdir)/ + $(SED) -i "s~#\! nft~#\!@sbindir@/nft~" $(DESTDIR)/$(confdir)/* |