mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-05 13:18:20 +03:00
config option to avoid using install -o -g
This commit is contained in:
parent
54abb2c572
commit
9314c7c881
@ -1,3 +1,7 @@
|
|||||||
|
Version 2.00.15 - 19 Apr 2004
|
||||||
|
=============================
|
||||||
|
configure --with-owner= --with-group= to avoid -o and -g args to 'install'
|
||||||
|
|
||||||
Version 2.00.14 - 16 Apr 2004
|
Version 2.00.14 - 16 Apr 2004
|
||||||
=============================
|
=============================
|
||||||
Use 64-bit file functions by default.
|
Use 64-bit file functions by default.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Version 1.00.17 - 17 Apr 2004
|
||||||
|
=============================
|
||||||
|
configure --with-owner= --with-group= to avoid -o and -g args to 'install'
|
||||||
|
|
||||||
Version 1.00.16 - 16 Apr 2004
|
Version 1.00.16 - 16 Apr 2004
|
||||||
=============================
|
=============================
|
||||||
Ignore error setting selinux file context if fs doesn't support it.
|
Ignore error setting selinux file context if fs doesn't support it.
|
||||||
|
15
configure
vendored
15
configure
vendored
@ -3907,24 +3907,31 @@ esac
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
OWNER="root"
|
||||||
|
GROUP="root"
|
||||||
|
|
||||||
|
|
||||||
# Check whether --with-user or --without-user was given.
|
# Check whether --with-user or --without-user was given.
|
||||||
if test "${with_user+set}" = set; then
|
if test "${with_user+set}" = set; then
|
||||||
withval="$with_user"
|
withval="$with_user"
|
||||||
OWNER="$withval"
|
OWNER="$withval"
|
||||||
else
|
|
||||||
OWNER="root"
|
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
if test x$OWNER != x; then
|
||||||
|
OWNER="-o $OWNER"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Check whether --with-group or --without-group was given.
|
# Check whether --with-group or --without-group was given.
|
||||||
if test "${with_group+set}" = set; then
|
if test "${with_group+set}" = set; then
|
||||||
withval="$with_group"
|
withval="$with_group"
|
||||||
GROUP="$withval"
|
GROUP="$withval"
|
||||||
else
|
|
||||||
GROUP="root"
|
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
if test x$GROUP != x; then
|
||||||
|
GROUP="-g $GROUP"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given.
|
# Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given.
|
||||||
if test "${enable_lvm1_fallback+set}" = set; then
|
if test "${enable_lvm1_fallback+set}" = set; then
|
||||||
enableval="$enable_lvm1_fallback"
|
enableval="$enable_lvm1_fallback"
|
||||||
|
17
configure.in
17
configure.in
@ -74,17 +74,26 @@ esac
|
|||||||
dnl -- prefix is /usr by default, the exec_prefix default is setup later
|
dnl -- prefix is /usr by default, the exec_prefix default is setup later
|
||||||
AC_PREFIX_DEFAULT(/usr)
|
AC_PREFIX_DEFAULT(/usr)
|
||||||
|
|
||||||
|
OWNER="root"
|
||||||
|
GROUP="root"
|
||||||
|
|
||||||
dnl -- setup the ownership of the files
|
dnl -- setup the ownership of the files
|
||||||
AC_ARG_WITH(user,
|
AC_ARG_WITH(user,
|
||||||
[ --with-user=USER Set the owner of installed files ],
|
[ --with-user=USER Set the owner of installed files ],
|
||||||
[ OWNER="$withval" ],
|
[ OWNER="$withval" ])
|
||||||
[ OWNER="root" ])
|
|
||||||
|
if test x$OWNER != x; then
|
||||||
|
OWNER="-o $OWNER"
|
||||||
|
fi
|
||||||
|
|
||||||
dnl -- setup the group ownership of the files
|
dnl -- setup the group ownership of the files
|
||||||
AC_ARG_WITH(group,
|
AC_ARG_WITH(group,
|
||||||
[ --with-group=GROUP Set the group owner of installed files ],
|
[ --with-group=GROUP Set the group owner of installed files ],
|
||||||
[ GROUP="$withval" ],
|
[ GROUP="$withval" ])
|
||||||
[ GROUP="root" ])
|
|
||||||
|
if test x$GROUP != x; then
|
||||||
|
GROUP="-g $GROUP"
|
||||||
|
fi
|
||||||
|
|
||||||
dnl -- LVM1 tool fallback option
|
dnl -- LVM1 tool fallback option
|
||||||
AC_ARG_ENABLE(lvm1_fallback, [ --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
|
AC_ARG_ENABLE(lvm1_fallback, [ --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
|
||||||
|
@ -23,7 +23,7 @@ include ../make.tmpl
|
|||||||
install:
|
install:
|
||||||
@if [ ! -e $(confdir)/$(CONFDEST) ]; then \
|
@if [ ! -e $(confdir)/$(CONFDEST) ]; then \
|
||||||
echo "Installing $(CONFSRC) as $(confdir)/$(CONFDEST)"; \
|
echo "Installing $(CONFSRC) as $(confdir)/$(CONFDEST)"; \
|
||||||
@INSTALL@ -D -o $(OWNER) -g $(GROUP) -m 644 $(CONFSRC) \
|
@INSTALL@ -D $(OWNER) $(GROUP) -m 644 $(CONFSRC) \
|
||||||
$(confdir)/$(CONFDEST); \
|
$(confdir)/$(CONFDEST); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ include ../../make.tmpl
|
|||||||
.PHONY: install
|
.PHONY: install
|
||||||
|
|
||||||
install: liblvm2format1.so
|
install: liblvm2format1.so
|
||||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) $< \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||||
$(libdir)/liblvm2format1.so.$(LIB_VERSION)
|
$(libdir)/liblvm2format1.so.$(LIB_VERSION)
|
||||||
$(LN_S) -f liblvm2format1.so.$(LIB_VERSION) $(libdir)/liblvm2format1.so
|
$(LN_S) -f liblvm2format1.so.$(LIB_VERSION) $(libdir)/liblvm2format1.so
|
||||||
|
|
||||||
|
@ -39,24 +39,24 @@ install: $(INSTALL_TYPE)
|
|||||||
|
|
||||||
install_dynamic: install_@interface@
|
install_dynamic: install_@interface@
|
||||||
$(LN_S) -f libdevmapper.so.$(LIB_VERSION) $(libdir)/libdevmapper.so
|
$(LN_S) -f libdevmapper.so.$(LIB_VERSION) $(libdir)/libdevmapper.so
|
||||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 444 libdevmapper.h \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper.h \
|
||||||
$(includedir)/libdevmapper.h
|
$(includedir)/libdevmapper.h
|
||||||
|
|
||||||
install_static: install_@interface@_static
|
install_static: install_@interface@_static
|
||||||
$(LN_S) -f libdevmapper.a.$(LIB_VERSION) $(libdir)/libdevmapper.a
|
$(LN_S) -f libdevmapper.a.$(LIB_VERSION) $(libdir)/libdevmapper.a
|
||||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 444 libdevmapper.h \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper.h \
|
||||||
$(includedir)/libdevmapper.h
|
$(includedir)/libdevmapper.h
|
||||||
|
|
||||||
install_fs: fs/libdevmapper.so
|
install_fs: fs/libdevmapper.so
|
||||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) $< \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||||
$(libdir)/libdevmapper.so.$(LIB_VERSION)
|
$(libdir)/libdevmapper.so.$(LIB_VERSION)
|
||||||
|
|
||||||
install_ioctl: ioctl/libdevmapper.so
|
install_ioctl: ioctl/libdevmapper.so
|
||||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) $< \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||||
$(libdir)/libdevmapper.so.$(LIB_VERSION)
|
$(libdir)/libdevmapper.so.$(LIB_VERSION)
|
||||||
|
|
||||||
install_ioctl_static: ioctl/libdevmapper.a
|
install_ioctl_static: ioctl/libdevmapper.a
|
||||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) $< \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||||
$(libdir)/libdevmapper.a.$(LIB_VERSION)
|
$(libdir)/libdevmapper.a.$(LIB_VERSION)
|
||||||
|
|
||||||
.PHONY: distclean_lib distclean
|
.PHONY: distclean_lib distclean
|
||||||
|
@ -34,12 +34,12 @@ install:
|
|||||||
@for f in $(MAN8); \
|
@for f in $(MAN8); \
|
||||||
do \
|
do \
|
||||||
$(RM) $(MAN8DIR)/$$f; \
|
$(RM) $(MAN8DIR)/$$f; \
|
||||||
@INSTALL@ -D -o $(OWNER) -g $(GROUP) -m 444 $$f $(MAN8DIR)/$$f; \
|
@INSTALL@ -D $(OWNER) $(GROUP) -m 444 $$f $(MAN8DIR)/$$f; \
|
||||||
done
|
done
|
||||||
|
|
||||||
@echo "Installing $(MAN5) in $(MAN5DIR)"
|
@echo "Installing $(MAN5) in $(MAN5DIR)"
|
||||||
@for f in $(MAN5); \
|
@for f in $(MAN5); \
|
||||||
do \
|
do \
|
||||||
$(RM) $(MAN5DIR)/$$f; \
|
$(RM) $(MAN5DIR)/$$f; \
|
||||||
@INSTALL@ -D -o $(OWNER) -g $(GROUP) -m 444 $$f $(MAN5DIR)/$$f; \
|
@INSTALL@ -D $(OWNER) $(GROUP) -m 444 $$f $(MAN5DIR)/$$f; \
|
||||||
done
|
done
|
||||||
|
@ -25,7 +25,7 @@ install: $(TARGETS)
|
|||||||
@echo Installing translation files in $(localedir)
|
@echo Installing translation files in $(localedir)
|
||||||
@( \
|
@( \
|
||||||
for lang in $(LANGS); do \
|
for lang in $(LANGS); do \
|
||||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 444 $$lang.mo \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 $$lang.mo \
|
||||||
$(localedir)/$$lang/LC_MESSAGES/@INTL_PACKAGE@.mo;\
|
$(localedir)/$$lang/LC_MESSAGES/@INTL_PACKAGE@.mo;\
|
||||||
done; \
|
done; \
|
||||||
)
|
)
|
||||||
|
@ -108,21 +108,21 @@ liblvm2cmd.so: liblvm2cmd.a $(LD_DEPS)
|
|||||||
install_tools_dynamic install_tools_static
|
install_tools_dynamic install_tools_static
|
||||||
|
|
||||||
install_cmdlib_dynamic: liblvm2cmd.so
|
install_cmdlib_dynamic: liblvm2cmd.so
|
||||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) liblvm2cmd.so \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) liblvm2cmd.so \
|
||||||
$(libdir)/liblvm2cmd.so.$(LIB_VERSION)
|
$(libdir)/liblvm2cmd.so.$(LIB_VERSION)
|
||||||
$(LN_S) -f liblvm2cmd.so.$(LIB_VERSION) $(libdir)/liblvm2cmd.so
|
$(LN_S) -f liblvm2cmd.so.$(LIB_VERSION) $(libdir)/liblvm2cmd.so
|
||||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 444 lvm2cmd.h \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 lvm2cmd.h \
|
||||||
$(includedir)/lvm2cmd.h
|
$(includedir)/lvm2cmd.h
|
||||||
|
|
||||||
install_cmdlib_static: liblvm2cmd.a
|
install_cmdlib_static: liblvm2cmd.a
|
||||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) liblvm2cmd.a \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) liblvm2cmd.a \
|
||||||
$(libdir)/liblvm2cmd.a.$(LIB_VERSION)
|
$(libdir)/liblvm2cmd.a.$(LIB_VERSION)
|
||||||
$(LN_S) -f liblvm2cmd.a.$(LIB_VERSION) $(libdir)/liblvm2cmd.a
|
$(LN_S) -f liblvm2cmd.a.$(LIB_VERSION) $(libdir)/liblvm2cmd.a
|
||||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 444 lvm2cmd.h \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 lvm2cmd.h \
|
||||||
$(includedir)/lvm2cmd.h
|
$(includedir)/lvm2cmd.h
|
||||||
|
|
||||||
install_tools_dynamic: lvm .commands
|
install_tools_dynamic: lvm .commands
|
||||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) lvm \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) lvm \
|
||||||
$(sbindir)/lvm
|
$(sbindir)/lvm
|
||||||
@echo Creating symbolic links for individual commands in $(sbindir)
|
@echo Creating symbolic links for individual commands in $(sbindir)
|
||||||
@( \
|
@( \
|
||||||
@ -133,7 +133,7 @@ install_tools_dynamic: lvm .commands
|
|||||||
)
|
)
|
||||||
|
|
||||||
install_tools_static: lvm.static
|
install_tools_static: lvm.static
|
||||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) lvm.static \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) lvm.static \
|
||||||
$(staticdir)/lvm.static
|
$(staticdir)/lvm.static
|
||||||
|
|
||||||
install: $(INSTALL_TARGETS)
|
install: $(INSTALL_TARGETS)
|
||||||
|
Loading…
Reference in New Issue
Block a user