1
0
forked from pool/util-linux
util-linux/util-linux-2.13-build_no_perl_dependency.patch

49 lines
1.7 KiB
Diff

Index: util-linux-ng-2.12r+git20070412/configure.ac
===================================================================
--- util-linux-ng-2.12r+git20070412.orig/configure.ac
+++ util-linux-ng-2.12r+git20070412/configure.ac
@@ -244,6 +244,11 @@ AC_ARG_ENABLE([partx],
)
AM_CONDITIONAL(BUILD_PARTX, test x$enable_partx = xyes)
+AC_ARG_ENABLE([perl-scripts],
+ AC_HELP_STRING([--enable-perl-scripts], [install perl scripts (chkdupexe, scriptreplay)]),
+ enable_perl_scripts=$enableval, enable_perl_scripts=no
+)
+AM_CONDITIONAL(INSTALL_PERL_SCRIPTS, test x$enable_perl_scripts = xyes)
AC_ARG_ENABLE([raw],
AC_HELP_STRING([--enable-raw], [build raw]),
Index: util-linux-ng-2.12r+git20070412/misc-utils/Makefile.am
===================================================================
--- util-linux-ng-2.12r+git20070412.orig/misc-utils/Makefile.am
+++ util-linux-ng-2.12r+git20070412/misc-utils/Makefile.am
@@ -11,9 +11,16 @@ bin_PROGRAMS =
usrbinexec_PROGRAMS = cal ddate logger look mcookie \
namei script whereis hostid
+usrbinexec_SCRIPTS =
+
+man_MANS = cal.1 ddate.1 logger.1 look.1 mcookie.1 \
+ namei.1 script.1 whereis.1 hostid.1
+
mcookie_LDADD = $(top_srcdir)/lib/libmd5.a
+if INSTALL_PERL_SCRIPTS
usrbinexec_SCRIPTS = chkdupexe scriptreplay
+man_MANS += chkdupexe.1 scriptreplay.1
chkdupexe: chkdupexe.pl
sed -e 's,[@]PERL[@],$(PERL),g' < chkdupexe.pl > chkdupexe
@@ -22,9 +29,7 @@ scriptreplay: scriptreplay.pl
sed -e 's,[@]PERL[@],$(PERL),g' < scriptreplay.pl > scriptreplay
CLEANFILES = chkdupexe scriptreplay
-
-man_MANS = cal.1 chkdupexe.1 ddate.1 logger.1 look.1 mcookie.1 \
- namei.1 script.1 whereis.1 scriptreplay.1 hostid.1
+endif
if HAVE_NCURSES
cal_LDADD = -lncurses