Commit Graph

43 Commits

Author SHA1 Message Date
Todd C. Miller
3f30704ab7 Add trivial support for FreeBSD packages.
The actual FreeBSD port supports multiple options but this is sufficient
for testing purposes.
2021-08-11 15:09:00 -06:00
Todd C. Miller
374d499818 FreeBSD: Set default directory and file mode if not specified in %files
Otherwise, a mode of 0 will be used, potentially rendering the
system unusable.
2021-08-11 14:59:27 -06:00
Todd C. Miller
57cb62d7dc On macOS, don't disable tty tickets and set password timeout to 0.
This more closely matches the options used by the macOS version of sudo.
2021-08-02 11:11:05 -06:00
Todd C. Miller
cc3b4ffb04 Remove vsyslog(3) emulation, it is no longer used. 2021-06-14 13:11:39 -06:00
Todd C. Miller
2e492267e7 Build sudo_noexec.so as a module on systems other then Darwin.
On Darwin, shared modules and shared libraries are not interchangable
and since we preload sudo_noexec.so via DYLD_INSERT_LIBRARIES it
must be a library, not a module.  We must relax the requirement
that libraries begin with a "lib" prefix to work around this
difference.  This does mean you must use sudo's libtool on Darwin
(macOS) but that is already a requirement on other systems (notably
HP-UX and SCO) due to a number of libtool patches we require that
haven't be accepted upstream.  This is a different fix for PR #102.
2021-05-13 12:45:56 -06:00
Todd C. Miller
0645a2ade6 Use /usr/bin/cc on FreeBSD and macOS. 2021-05-12 15:19:43 -06:00
Todd C. Miller
3018c1cd2d Build python plugin for RHEL 6 as well. 2021-05-06 18:59:51 -06:00
Todd C. Miller
b5542f8b26 Fix detection of the volatile flag when other flags are present.
Otherwise flags fields like "volatile,ignore-other" will be ignored
by the Debian and BSD back ends.
2021-05-03 13:51:21 -06:00
Todd C. Miller
d4517e0a1c Move autoconf auxiliary files to the scripts directory. 2021-04-06 14:23:38 -06:00
Todd C. Miller
42fbc185ab Solaris 11.4 removed /usr/bin/optisa, use /usr/bin/isainfo instead. 2021-03-10 07:29:52 -07:00
Todd C. Miller
2b564cd7b2 Only put specific directories in the ROOT section of the AIX package.
Previously, /usr and /opt were placed in USR and everything else
went in ROOT.  Now, only /dev, /etc, /sbin and /var go in ROOT.
2021-03-06 16:23:24 -07:00
Todd C. Miller
db4ee0a903 Append to CFLAGS and LDFLAGS instead of overriding them when adding -m64. 2021-02-07 15:38:11 -07:00
Todd C. Miller
06bfbecd64 Add emulation of pread(3) and pwrite(3) for systems without them.
This makes it possible to remove some ugly #ifdefs and only affects
very old systems.
2021-01-02 10:43:34 -07:00
Todd C. Miller
d28b4291c4 Build universal binaries on macOS 11.0 and higher.
The resulting package should work on Macs based on Apple Silicon.
2020-11-13 09:46:00 -07:00
Todd C. Miller
866b0b77f2 Build 64-bit binaries on HP-UX ia64 2020-10-20 14:40:32 -06:00
Todd C. Miller
dad149f785 Add missing dependency info for cfmakeraw.lo in lib/util/Makefile.in
From Tim Rice
2020-09-04 15:51:45 -06:00
Todd C. Miller
eaa95acb31 Post-process protoc-c files to avoid depending on anonymous unions.
Based on a patch from Michael Osipov.
GitHub issue #60
2020-09-04 13:17:51 -06:00
Todd C. Miller
086aaeb446 Format the macOS minor version number with two digits.
This way we get consistent 4-digit version numbers even for macOS
verions like 10.3 or 11.0 where the minor number is a single digit.
For example. 10.3 will be formatted as 1003 and 11.0 will be 1100.
2020-08-14 14:53:27 -06:00
Todd C. Miller
d12f7ccf25 Fix probe for macOS Big Sur
"sw_vers -productName" now returns "macOS", not "Mac OS X"
2020-08-13 20:40:33 -06:00
Todd C. Miller
ce97ca28db Use OpenBSD-compatible freezero() in place of explicit_bzero() + free() 2020-08-10 19:24:33 -06:00
Todd C. Miller
cef6e3687e Switch from memset_s() -> explicit_bzero().
memset_s() (and all of Annex K) is likely to be removed from the
a future version of the standard.
2020-08-10 19:24:32 -06:00
Todd C. Miller
c90539015f Fix libssl dependency on Debian-based systems.
Older systems may still have libssl1.0.0, not libssl1.1.
2020-08-05 12:58:02 -06:00
Todd C. Miller
d04805eecb Fix parsing of /etc/redhat-release on RHEL 8.
RedHat dropped the word "server" from the release name in redhat-release
which results in the awk script printing the wrong field.  Instead
of using awk, just use sed to pull out the version number immediately
following the word "release".
2020-06-24 14:19:14 -06:00
Todd C. Miller
a339945848 Prefer the python3 in /usr/bin on Solaris.
The /opt/csw version, if it exists, may be a 32-bit version which
we can't link with.  Also handle the case where the /usr/bin/python3
link is missing.
2020-06-06 18:45:28 -06:00
Todd C. Miller
6c881477b6 Build 64-bit binaries and the python package on Solaris 11 and above.
No longer prefer the Solaris Studio C compiler over gcc, it causes
issues with the Python plugin.
2020-06-06 16:07:33 -06:00
Todd C. Miller
15d93a1ca7 Fix Solaris and BSM audit warnings.
Use BSM audit on Illumos, which lacks Solaris audit.
2020-06-04 14:41:28 -06:00
Todd C. Miller
a0aaae5541 Don't enable BSM audit on Solaris 10, it is missing AUE_sudo 2020-06-01 13:56:47 -06:00
Todd C. Miller
e1aa76de16 Use Solaris audit for Solaris 11, not BSM audit.
BSM audit is no longer supported in Solaris 11.4.
2020-06-01 12:47:38 -06:00
Todd C. Miller
4ea7ecffdd Enable OpenSSL on RHEL 6 too.
The version of OpenSSL in RHEL 6 is new enough for the log server to use.
2020-05-15 09:50:46 -06:00
Todd C. Miller
e42afc7732 Sync PolyPkg from upstream. 2020-05-06 09:52:48 -06:00
Todd C. Miller
0cf2e09e0c Apply spelling fixes.
Fixes from PR #30 (ka7) and Bug #925 (fossies.org codespell)
2020-05-06 09:27:43 -06:00
Todd C. Miller
40f47f0136 Fix support for pp_systemd_disabled and check for systemd existence.
On our build schroots we don't have systemctl installed but do have
the /etc/systemd and /lib/systemd (or /usr/lib/systemd) directories.
2020-04-22 15:23:05 -06:00
Todd C. Miller
d5b06ff7fa Fix macOS package creation. 2020-04-22 08:58:07 -06:00
Todd C. Miller
d22800edd5 Only remove the systemd unit service file if we copied it manually.
If the service file was installed as part of the package it will
be removed automatically when the package is uninstalled.
2020-04-21 11:05:29 -06:00
Todd C. Miller
a89ddb63fd Disable systemd support on Linux systems that don't use it. 2020-04-16 15:32:07 -06:00
Todd C. Miller
1034d3f5b6 Update PolyPkg from my branch with systemd support. 2020-04-14 19:25:49 -06:00
Todd C. Miller
eebe68233c Check for the Sun Studio C compiler on Solaris under /opt.
Also intialize with_python to false.
2020-04-08 14:10:03 -06:00
Todd C. Miller
d6684b851a Build python packages where possible. 2020-04-07 14:03:58 -06:00
Todd C. Miller
6a2b5fd82f Handle dependencies for .h files in the same directory as the source.
Fixes missing header dependencies for the sudoers and python plugins.
2020-04-07 14:03:58 -06:00
Todd C. Miller
a46d8bd11a Enable OpenSSL on systems that can support it. 2020-03-19 06:05:32 -06:00
Todd C. Miller
3911e4f7bf Use Text::Wrap instead of perl's built-in format function.
This still breaks log filename incorrectly but is a step in the
right direction.
2020-02-10 09:11:30 -07:00
Todd C. Miller
c2f3f60583 Avoid changing directory when generating the ChangeLog file.
Instead, pass the repo path to either hg or log2cl.pl
2020-02-10 08:02:47 -07:00
Todd C. Miller
2fe127d108 Move some scripts from the top level src dir to a scripts dir. 2020-02-06 14:30:26 -07:00