Include .mo files in sudo binary packags.

This commit is contained in:
Todd C. Miller
2011-05-27 10:17:34 -04:00
parent 47adbf8d33
commit 38db44b80c
4 changed files with 6 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ sysconfdir = @sysconfdir@
libexecdir = @libexecdir@ libexecdir = @libexecdir@
includedir = @includedir@ includedir = @includedir@
datarootdir = @datarootdir@ datarootdir = @datarootdir@
localedir = @localedir@
localstatedir = @localstatedir@ localstatedir = @localstatedir@
docdir = @docdir@ docdir = @docdir@
mandir = @mandir@ mandir = @mandir@
@@ -138,6 +139,7 @@ package: sudo.pp
includedir=$(includedir) \ includedir=$(includedir) \
timedir=$(timedir) \ timedir=$(timedir) \
mandir=$(mandir) \ mandir=$(mandir) \
localedir=$(localedir) \
docdir=$(docdir) \ docdir=$(docdir) \
sysconfdir=$(sysconfdir) \ sysconfdir=$(sysconfdir) \
sudoersdir=$(sudoersdir) \ sudoersdir=$(sudoersdir) \

View File

@@ -284,7 +284,7 @@ install-nls:
fi; \ fi; \
set -- $(LINGUAS); \ set -- $(LINGUAS); \
while test $$# != 0; do \ 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; \ $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0644 $(srcdir)/po/$$1.mo $(DESTDIR)$(localedir)/$$1/LC_MESSAGES/sudoers.mo; \
shift; \ shift; \
done; \ done; \

View File

@@ -170,7 +170,7 @@ install-nls:
fi; \ fi; \
set -- $(LINGUAS); \ set -- $(LINGUAS); \
while test $$# != 0; do \ 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; \ $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0644 $(srcdir)/po/$$1.mo $(DESTDIR)$(localedir)/$$1/LC_MESSAGES/sudo.mo; \
shift; \ shift; \
done; \ done; \

View File

@@ -187,6 +187,8 @@ still allow people to get their work done."
$timedir/ 0700 root: $timedir/ 0700 root:
$docdir/ $docdir/
$docdir/* $docdir/*
$localedir/ optional
$localedir/** optional
/etc/pam.d/* volatile,optional /etc/pam.d/* volatile,optional
%if [rpm,deb] %if [rpm,deb]
$sudoersdir/sudoers $sudoers_mode $sudoers_uid:$sudoers_gid volatile $sudoersdir/sudoers $sudoers_mode $sudoers_uid:$sudoers_gid volatile