]> granicus.if.org Git - sudo/commitdiff
Include .mo files in sudo binary packags.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 27 May 2011 14:17:34 +0000 (10:17 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 27 May 2011 14:17:34 +0000 (10:17 -0400)
Makefile.in
plugins/sudoers/Makefile.in
src/Makefile.in
sudo.pp

index 0acfec81473925001ac2fe1ff7da81b244267695..840c75803cc152326fa2e92c1f7dec201e282951 100644 (file)
@@ -29,6 +29,7 @@ sysconfdir = @sysconfdir@
 libexecdir = @libexecdir@
 includedir = @includedir@
 datarootdir = @datarootdir@
+localedir = @localedir@
 localstatedir = @localstatedir@
 docdir = @docdir@
 mandir = @mandir@
@@ -138,6 +139,7 @@ package: sudo.pp
            includedir=$(includedir) \
            timedir=$(timedir) \
            mandir=$(mandir) \
+           localedir=$(localedir) \
            docdir=$(docdir) \
            sysconfdir=$(sysconfdir) \
            sudoersdir=$(sudoersdir) \
index 69c6f166e9323daf6af868293625f8887497bc45..592960cd93a249a62782e1be53a73d325d3fff8a 100644 (file)
@@ -284,7 +284,7 @@ install-nls:
        fi; \
        set -- $(LINGUAS); \
        while test $$# != 0; do \
-           $(INSTALL) -d $(DESTDIR)$(localedir)/$$1/LC_MESSAGES; \
+           $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(localedir)/$$1/LC_MESSAGES; \
            $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0644 $(srcdir)/po/$$1.mo $(DESTDIR)$(localedir)/$$1/LC_MESSAGES/sudoers.mo; \
            shift; \
        done; \
index 601876041b9abcff53ef0e10399256e46d161313..431d158c34331b542fe7868372ac3be596b6c649 100644 (file)
@@ -170,7 +170,7 @@ install-nls:
        fi; \
        set -- $(LINGUAS); \
        while test $$# != 0; do \
-           $(INSTALL) -d $(DESTDIR)$(localedir)/$$1/LC_MESSAGES; \
+           $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(localedir)/$$1/LC_MESSAGES; \
            $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0644 $(srcdir)/po/$$1.mo $(DESTDIR)$(localedir)/$$1/LC_MESSAGES/sudo.mo; \
            shift; \
        done; \
diff --git a/sudo.pp b/sudo.pp
index 6b9cd926807a4201e72e4c86d9a80853c1919cd2..a755651e707c0b554b8fd5883973fb870aa6dd17 100644 (file)
--- a/sudo.pp
+++ b/sudo.pp
@@ -187,6 +187,8 @@ still allow people to get their work done."
        $timedir/               0700 root:
        $docdir/
        $docdir/*
+       $localedir/             optional
+       $localedir/**           optional
        /etc/pam.d/*            volatile,optional
 %if [rpm,deb]
        $sudoersdir/sudoers $sudoers_mode $sudoers_uid:$sudoers_gid volatile