aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure7
-rw-r--r--configure.ac7
-rwxr-xr-xsrc/fgit/fgit-install.sh2
-rw-r--r--src/fgit/fgit-uninstall.sh2
-rw-r--r--src/firejail/main.c6
5 files changed, 16 insertions, 8 deletions
diff --git a/configure b/configure
index bdffba2ad..74f47a7c4 100755
--- a/configure
+++ b/configure
@@ -1351,7 +1351,7 @@ Optional Features:
1351 --enable-busybox-workaround 1351 --enable-busybox-workaround
1352 enable busybox workaround 1352 enable busybox workaround
1353 --enable-gcov Gcov instrumentation 1353 --enable-gcov Gcov instrumentation
1354 --disable-git-install disable git install feature 1354 --enable-git-install enable git install feature
1355 1355
1356Some influential environment variables: 1356Some influential environment variables:
1357 CC C compiler command 1357 CC C compiler command
@@ -3103,6 +3103,7 @@ if test "x$enable_apparmor" = "xyes"; then :
3103fi 3103fi
3104 3104
3105 3105
3106
3106ac_ext=c 3107ac_ext=c
3107ac_cpp='$CPP $CPPFLAGS' 3108ac_cpp='$CPP $CPPFLAGS'
3108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3713,20 +3714,20 @@ if test "x$enable_gcov" = "xyes"; then :
3713 3714
3714fi 3715fi
3715 3716
3717
3716HAVE_GIT_INSTALL="" 3718HAVE_GIT_INSTALL=""
3717# Check whether --enable-git-install was given. 3719# Check whether --enable-git-install was given.
3718if test "${enable_git_install+set}" = set; then : 3720if test "${enable_git_install+set}" = set; then :
3719 enableval=$enable_git_install; 3721 enableval=$enable_git_install;
3720fi 3722fi
3721 3723
3722if test "x$enable_git_install" != "xno"; then : 3724if test "x$enable_git_install" = "xyes"; then :
3723 3725
3724 HAVE_GIT_INSTALL="-DHAVE_GIT_INSTALL" 3726 HAVE_GIT_INSTALL="-DHAVE_GIT_INSTALL"
3725 3727
3726 3728
3727fi 3729fi
3728 3730
3729
3730# checking pthread library 3731# checking pthread library
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
3732$as_echo_n "checking for main in -lpthread... " >&6; } 3733$as_echo_n "checking for main in -lpthread... " >&6; }
diff --git a/configure.ac b/configure.ac
index 252f82cde..6a6c40b40 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,6 +17,7 @@ AS_IF([test "x$enable_apparmor" = "xyes"], [
17 AC_SUBST(HAVE_APPARMOR) 17 AC_SUBST(HAVE_APPARMOR)
18]) 18])
19 19
20
20AS_IF([test "x$enable_apparmor" = "xyes"], [ 21AS_IF([test "x$enable_apparmor" = "xyes"], [
21 AC_CHECK_HEADER(sys/apparmor.h, , [AC_MSG_ERROR( 22 AC_CHECK_HEADER(sys/apparmor.h, , [AC_MSG_ERROR(
22 [Couldn't find sys/apparmor.h... please install apparmor user space library and development files] )]) 23 [Couldn't find sys/apparmor.h... please install apparmor user space library and development files] )])
@@ -145,15 +146,15 @@ AS_IF([test "x$enable_gcov" = "xyes"], [
145 AC_SUBST(HAVE_GCOV) 146 AC_SUBST(HAVE_GCOV)
146]) 147])
147 148
149
148HAVE_GIT_INSTALL="" 150HAVE_GIT_INSTALL=""
149AC_ARG_ENABLE([git-install], 151AC_ARG_ENABLE([git-install],
150 AS_HELP_STRING([--disable-git-install], [disable git install feature])) 152 AS_HELP_STRING([--enable-git-install], [enable git install feature]))
151AS_IF([test "x$enable_git_install" != "xno"], [ 153AS_IF([test "x$enable_git_install" = "xyes"], [
152 HAVE_GIT_INSTALL="-DHAVE_GIT_INSTALL" 154 HAVE_GIT_INSTALL="-DHAVE_GIT_INSTALL"
153 AC_SUBST(HAVE_GIT_INSTALL) 155 AC_SUBST(HAVE_GIT_INSTALL)
154]) 156])
155 157
156
157# checking pthread library 158# checking pthread library
158AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***])) 159AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***]))
159AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed ***])) 160AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed ***]))
diff --git a/src/fgit/fgit-install.sh b/src/fgit/fgit-install.sh
index 9e43559a1..1f710c688 100755
--- a/src/fgit/fgit-install.sh
+++ b/src/fgit/fgit-install.sh
@@ -6,7 +6,7 @@ set -e # exit immediately if one of the commands fails
6cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp 6cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp
7git clone --depth=1 https://www.github.com/netblue30/firejail.git 7git clone --depth=1 https://www.github.com/netblue30/firejail.git
8cd firejail 8cd firejail
9./configure 9./configure --enable-git-install
10make 10make
11sudo make install-strip 11sudo make install-strip
12echo "**********************************************************************" 12echo "**********************************************************************"
diff --git a/src/fgit/fgit-uninstall.sh b/src/fgit/fgit-uninstall.sh
index 9a370546d..bc7cc9563 100644
--- a/src/fgit/fgit-uninstall.sh
+++ b/src/fgit/fgit-uninstall.sh
@@ -6,7 +6,7 @@ set -e # exit immediately if one of the commands fails
6cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp 6cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp
7git clone --depth=1 https://www.github.com/netblue30/firejail.git 7git clone --depth=1 https://www.github.com/netblue30/firejail.git
8cd firejail 8cd firejail
9./configure 9./configure --enable-git-install
10sudo make uninstall 10sudo make uninstall
11echo "**********************************************************************" 11echo "**********************************************************************"
12echo "Firejail mainline git version uninstalled from /usr/local" 12echo "Firejail mainline git version uninstalled from /usr/local"
diff --git a/src/firejail/main.c b/src/firejail/main.c
index 0d4cf2595..b90e30cca 100644
--- a/src/firejail/main.c
+++ b/src/firejail/main.c
@@ -2143,6 +2143,12 @@ int main(int argc, char **argv) {
2143 return 1; 2143 return 1;
2144 } 2144 }
2145 } 2145 }
2146 else if (strcmp(argv[i], "--git-install") == 0 ||
2147 strcmp(argv[i], "--git-uninstall") == 0) {
2148 fprintf(stderr, "This feature is not enabled in the current build\n");
2149 exit(1);
2150 }
2151
2146 else if (strcmp(argv[i], "--") == 0) { 2152 else if (strcmp(argv[i], "--") == 0) {
2147 // double dash - positional params to follow 2153 // double dash - positional params to follow
2148 arg_doubledash = 1; 2154 arg_doubledash = 1;