On Tue, Jun 21, 2011 at 01:16:59PM +0200, Werner Fink wrote:
> On Tue, Jun 21, 2011 at 12:01:16PM +0200, Karel Zak wrote:
> > 
> >  Hi,
> > 
> >  I have reimplemented the mountpoint(1) command for libmount. The new
> >  implementation will be available in the next util-linux release
> >  (2.20).  I think that the command should be maintained in the same
> >  place as mount(8) command.
> > 
> >  Would be possible to disable the old version in sysvinit suite and
> >  not install this version by default?
> 
> What about the attached patch?  If OK I'd like to submit it ;)
> 
>      Werner

Oops pressed enter to early

-- 
System V style init programs - http://savannah.nongnu.org/projects/sysvinit/
Index: src/Makefile
===================================================================
--- src/Makefile	(revision 105)
+++ src/Makefile	(working copy)
@@ -14,6 +14,12 @@
 STATIC	=
 MANDB	:= s@^\('\\\\\"\)[^\*-]*-\*- coding: [^[:blank:]]\+ -\*-@\1@
 
+#
+# Leave empty if the mountpoint(1) command from util-linux 2.20
+# and above should be used, otherwise set it to yes.
+#
+MNTPOINT=
+
 # For some known distributions we do not build all programs, otherwise we do.
 BIN	=
 SBIN	= init halt shutdown runlevel killall5 fstab-decode
@@ -25,18 +31,15 @@
 MAN8	+= shutdown.8 telinit.8 fstab-decode.8
 
 ifeq ($(DISTRO),)
-BIN	+= mountpoint
 SBIN	+= sulogin bootlogd
 USRBIN	+= utmpdump wall
-MAN1	+= utmpdump.1 mountpoint.1 wall.1
+MAN1	+= utmpdump.1 wall.1
 MAN8	+= sulogin.8 bootlogd.8
 endif
 
 ifeq ($(DISTRO),Debian)
 CPPFLAGS+= -DACCTON_OFF
-BIN	+= mountpoint
 SBIN	+= sulogin bootlogd
-MAN1	+= mountpoint.1
 MAN8	+= sulogin.8 bootlogd.8
 MANDB	:=
 endif
@@ -49,14 +52,18 @@
 
 ifeq ($(DISTRO),SuSE)
 CPPFLAGS+= -DUSE_SYSFS -DSANE_TIO -DSIGINT_ONLYONCE -DUSE_ONELINE
-BIN	+= mountpoint
 SBIN	+= sulogin
 USRBIN	+= utmpdump
-MAN1	+= utmpdump.1 mountpoint.1
+MAN1	+= utmpdump.1
 MAN8	+= sulogin.8
 MANDB	:=
 endif
 
+ifeq ($(MNTPOINT),yes)
+BIN	+= mountpoint
+MAN1	+= mountpoint.1
+endif
+
 ID		= $(shell id -u)
 BIN_OWNER	= root
 BIN_GROUP	= root

Reply via email to