Commit Graph

97 Commits

Author SHA1 Message Date
Todd C. Miller
2180eab1f9 Better check for /etc/rc.d/rc2.d/S90sudo on AIX 2017-04-26 15:49:10 -06:00
Todd C. Miller
9bccceaea1 In "make install", install sample sudoers file as /etc/sudoers.dist
and copy it to /etc/sudoers if there is no existing /etc/sudoers.
Packages either contain /etc/sudoers (RPM and Debian) or /etc/sudoers.dist
(everything else).
2017-04-26 13:52:49 -06:00
Todd C. Miller
a9973c2e68 System Integrity Protection on Mac OS X won't allow us to write
directly to /etc or /var.  We must install in /private/{etc,var}
instead.
2016-08-09 12:35:08 -06:00
Todd C. Miller
ff2cd3cf27 Update copyright year. 2016-06-22 18:19:27 -06:00
Todd C. Miller
9b19ea440c Fedora dropped "core" from the name some time ago so just match on
f[0-9] for the rpm distro name provided by pp.  Since the version
numbers of Fedora and RHEL are so different switch to defining
variables to indicate which features should be enabled.  Works for
Fedora 23.
2016-02-01 11:07:10 -07:00
Todd C. Miller
25abb72184 Treat fedora core like centos/rhel for package building. 2016-01-31 07:36:44 -07:00
Todd C. Miller
d13bb39d1d Use https in sudo.ws urls 2015-11-20 10:51:11 -07:00
Todd C. Miller
2460636095 Fix typo that broke the linux_audit dependency on Debian. 2015-07-09 11:06:03 -06:00
Todd C. Miller
2d0699a070 Only use --with-sssd-lib on Debian/Ubuntu w/ multipackage.
Use dpkg-query to determine the name of the audit package
for proper dependencies.
2015-07-08 18:13:39 -06:00
Todd C. Miller
c3b4e4ce3e Update Debian/Ubuntu packages to be more like the vendor ones. One
notable exception is that sudo.ws packages use /var/run, not /var/lib
for timestamp files.
2015-07-08 16:15:53 -06:00
Todd C. Miller
02aa57c169 Sync tmpfiles.d/sudo.conf with init.d/sudo.conf.in 2015-04-10 09:03:15 -06:00
Todd C. Miller
68339fa9c1 Work around a bug in pp that caused a warning when exampledir is a
subdir of docdir.
2015-04-09 18:14:38 -06:00
Todd C. Miller
fa3552fa76 Create template tmpfiles.d/sudo.conf for installation instead of
creating one via echo commands in the Makefile.

Add --enable-tmpfiles.d configure option to enable/disable use of
tmpfiles.d and override the default directory.

Use --disable-tmpfiles.d in mkpkg so we no longer need to ignore
tmpfiles.d/sudo.conf in sudo.pp.
2015-04-07 15:35:01 -06:00
Todd C. Miller
d297f5fd84 Make exampledir configurable and default to DATAROOTDIR/examples/sudo
on BSD systems.
2015-04-06 15:10:26 -06:00
Todd C. Miller
6d63ca32fb Fix setting of pp_rpm_version when there is no patchlevel present.
Also tighten up the regexp for pp_rpm_release.
2015-04-07 10:15:45 -06:00
Todd C. Miller
f63896e7d8 Install /usr/lib/tmpfiles.d/sudo.conf on systems with systemd but
do not package it.  For packages we create /usr/lib/tmpfiles.d/sudo.conf
as needed in the postinstall script.
2015-04-06 15:08:37 -06:00
Todd C. Miller
da092640be Update copyright year. 2015-03-05 12:43:50 -07:00
Todd C. Miller
8e1ceb5a7b Only create /usr/lib/tmpfiles.d/sudo.conf if
/usr/lib/tmpfiles.d/systemd.conf also exists.  Some other package
may have created /usr/lib/tmpfiles.d even though it is not used.
2015-02-26 09:55:01 -07:00
Todd C. Miller
a056794e9c Clear the ts dir instead of just making sure it exists. 2015-02-26 09:21:18 -07:00
Todd C. Miller
8fdc46433c Create /usr/lib/tmpfiles.d/sudo.conf when systemd is used. 2015-02-25 16:45:12 -07:00
Todd C. Miller
7d1ee77136 Don't need to pass exampledir to polypkg now that it is just under
docdir.
2015-02-19 09:47:57 -07:00
Todd C. Miller
2ed7f2dd94 Fix packaging of the example dir. 2015-02-18 16:17:24 -07:00
Todd C. Miller
3f82c8e578 Add /usr/local/share/examples/ directory to parentdirs so it is
explicitly added to the package.
2015-02-04 09:38:25 -07:00
Todd C. Miller
b91a91d289 Move sample.* files to a sudo examples dir 2014-10-24 14:25:12 -06:00
Todd C. Miller
6e8b84fda2 Fix a packaging problem with the sudoedit man page link on Debian. 2014-10-24 14:25:10 -06:00
Todd C. Miller
ef11361eea Fix osrelease sed expression. It wasn't matching distros with a
single digit version such as sles9.
2014-08-26 15:47:48 -06:00
Todd C. Miller
dbe0b213da Only use the first two digits of the version number.
Fixes a problem on RHEL 7 which has version numbers like 7.0.1406
2014-08-15 16:46:24 -06:00
Todd C. Miller
4bc4522ed8 Fix syntax error with some shells. 2014-07-14 06:32:21 -06:00
Todd C. Miller
691421011d The RHEL sudo package allows users in group wheel to run sudo. 2014-07-11 15:42:01 -06:00
Todd C. Miller
d86df074d5 Avoid packaging parent directories when they are system directories.
Currently we just skip this when prefix is /usr
2014-07-11 15:32:17 -06:00
Todd C. Miller
2b4bc87c07 Install /etc/rc.d/init.d/sudo and /etc/rc.d/rc2.d/S90sudo for
AIX rpm packages.
2014-02-17 09:02:06 -07:00
Todd C. Miller
cb3cea3fa9 Fix INIT_DIR for real this time. 2014-02-16 14:49:15 -07:00
Todd C. Miller
0bf299c690 Use correct init.d dir on HP-UX.
Fix pp warnings from rc.d and init.d dirs.
2014-02-16 11:00:41 -07:00
Todd C. Miller
96d87d55dd First cut add installing an init.d file for HP-UX and AIX to remove
old sudo timestamp files at boot time.
2014-02-16 10:22:43 -07:00
Todd C. Miller
4831eeaac2 Avoid duplicate directories if vardir and rundir are the same. 2014-02-02 06:39:05 -07:00
Todd C. Miller
17ab16824b Remove the time stamp dir and its contents when uninstalling. We
currently leave the lecture status files installed until there is
a better way to detect upgrades.
2014-02-01 06:30:40 -07:00
Todd C. Miller
aeb5ceead8 Replace --with-timedir and --with-lecture_dir with --with-rundir
and --with-vardir which are the parent directories of the time stamp
and lecture dirs.  These directories need to be searchable by
non-root so that the timestampowner setting can function.
2014-02-01 05:57:34 -07:00
Todd C. Miller
f2a007fb91 Update copyright year. 2013-04-15 16:29:36 -04:00
Todd C. Miller
6b09c76a20 Sudo now stores its libexec files in a "sudo" subdirectory instead
of in libexec itself.  For backwards compatibility, if the plugin
is not found in the default plugin directory, sudo will check the
parent directory default directory ends in "/sudo".
2013-02-06 14:06:51 -05:00
Todd C. Miller
5904f7ede9 Add "Provides: sudo" to debian sudo-ldap package 2012-07-05 09:34:20 -04:00
Todd C. Miller
aab4b3589b MacOS pp backend doesn't like modes longer than 4 characters. 2012-07-02 08:24:57 -04:00
Todd C. Miller
386ba7b062 If installing with installp, error out if there is already an
instance of the rpm package installed.
2012-06-25 16:16:25 -04:00
Todd C. Miller
5c1ba0b49d Debian sudo-ldap packages should now depend on libldap-2.4-2, not
libldap2.
2012-06-22 10:57:23 -04:00
Todd C. Miller
e571d6ff68 Add Homepage and Bugs to debian control file. 2012-06-21 13:41:39 -04:00
Todd C. Miller
60eafc971f Add mode for installed locale files but leave the directories with
default mode and owner.
2012-06-12 13:52:20 -04:00
Todd C. Miller
c498235578 Install AIX packages under /opt/freeware with links in /usr/bin and
/usr/sbin.  This matches the layout of the sudo package from AIX
freeware.
2012-06-11 15:07:16 -04:00
Todd C. Miller
a8e0687ca9 Install shared objects with mode 0644 except on HP-UX which needs
the executable bit set.
2012-06-11 10:45:34 -04:00
Todd C. Miller
f5948149e0 Fix packaging of symbolic links on HP-UX when the link source already
exists in the filesystem.
2012-06-08 13:27:16 -04:00
Todd C. Miller
94049aa532 Fix setting of sudoedit_man variable. 2012-06-08 09:37:43 -04:00
Todd C. Miller
4c88e08c87 Build .deb packages with selinux support. 2012-06-07 13:59:36 -04:00