Todd C. Miller
bcfeddc998
Rename foo.sym -> foo.exp
...
Remove foo.map from the repo and generate it on demand
Use a loader option file for HP-UX ld to explicitly export symbols
2012-06-20 12:58:16 -04:00
Todd C. Miller
47abbb90a2
Don't use a map file for sudo_noexec.so since Solaris ld doesn't
...
allow '*' in the global section. The libtool export flag is now
added to LT_LDFLAGS instead of commenting/uncommenting lines.
2012-06-14 11:35:02 -04:00
Todd C. Miller
6f6b0dec6c
Use gcc's visibility attribute to specify when symbols are visible
...
or hidden, if available. If not available, use an ELF version
script if it is supported. If all else fails, fall back to using
libtool's -export-symbols.
2012-06-13 14:01: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
cb66fc6f10
Use -m not -M for install-sh for everything except setuid.
...
Install locale .mo files mode 0444, not 0644.
If timedir parent doesn't exist, use default dir mode, not 0700.
2012-02-09 11:11:58 -05:00
Todd C. Miller
1cec1f4777
No need for install target to depend explicitly on install-dirs,
...
the install-foo targets all depend on it.
2011-12-07 14:33:25 -05:00
Todd C. Miller
9f0abb4692
Add support for setenv entries in login.conf. We can't use LOGIN_SETENV
...
since the plugin sets up the envp the command is executed with.
Also regen the Makefile.in files while here. Fixes bug #527
2011-12-05 10:43:44 -05:00
Todd C. Miller
21a2f95821
Use stdbool.h instead of rolling our own TRUE/FALSE macros.
2011-12-02 11:27:33 -05:00
Todd C. Miller
e66169b3ed
Move nls targets to the top level Makefile so the paths in
...
the pot file are saner
2011-06-04 18:27:13 -04:00
Todd C. Miller
78e235945f
Auto-generate Makefile dependencies with a perl script.
2011-05-25 09:02:25 -04:00
Todd C. Miller
3164f58143
Add scaffolding to update .po files and install .mo files.
2011-05-19 15:25:29 -04:00
Todd C. Miller
89cd8c2ff1
Back out the --with-libpath addition to SUDOERS_LDFLAGS since that
...
now include LDFLAGS in the sudoers Makefile.in.
Add missing settng of @LDFLAGS@ in plugin Makefile.in files.
2011-04-06 07:01:17 -04:00
Todd C. Miller
021e2a94b9
The --with-libpath option now adds to SUDOERS_LDFLAGS as well as LDFLAGS.
...
Remove old -static hack for HP-UX < 9.
Add LTLDFLAGS and set it to -Wc,-static-libgcc if not using GNU ld so we
don't have a dependency on the shared libgcc in sudoers.so.
2011-04-05 09:42:59 -04:00
Todd C. Miller
44c763c728
If there is an existing sudoers file, only install if it passes a
...
syntax check.
2011-03-29 15:20:32 -04:00
Todd C. Miller
7599034e69
Only export the symbols corresponding to the plugin structs.
2011-03-10 12:12:14 -05:00
Todd C. Miller
498248d1f0
Install plugins manually instead of using libtool. This works
...
around a problem on AIX where libtool will install a .a file
containing the .so file instead of the .so file itself.
2011-03-10 10:57:56 -05:00
Todd C. Miller
435e44808d
add localstatedir; closes bug 471
2011-02-19 08:29:21 -05:00
Todd C. Miller
f7f8b6867e
Update copyright year to 2011
2011-01-20 16:46:56 -05:00
Todd C. Miller
1defd7b456
Add regression tests for iolog_path()
2011-01-06 11:05:28 -05:00
Todd C. Miller
f8de3f6327
Add support for "make Makefile" to regenerate Makefile from Makefile.in
2011-01-06 10:44:28 -05:00
Todd C. Miller
47323843a5
Give up on using VPATH to find sources as it is implemented inconsistenly
...
in different versions of make.
2010-11-09 10:27:02 -05:00
Todd C. Miller
f538ed4e35
Add dlopen() emulation for systems without it.
...
For HP-UX 10, emulate using shl_load().
For others, link sudoers plugin statically and use a lookup
table to emulate dlsym().
2010-09-26 17:41:35 -04:00
Todd C. Miller
092a6935e1
Install binary files with -b~ to make a backup.
...
Fixes "text file busy" error on HP-UX during install.
2010-07-23 11:23:53 -04:00
Todd C. Miller
a33996e740
install-man -> install-doc
2010-07-13 08:36:19 -04:00
Todd C. Miller
3f33f75b7a
Add uninstall target
2010-07-07 11:42:36 -04:00
Todd C. Miller
303d856065
Minor Makefile cleanup: fix a typo, change the removal order in
...
the clean targets, and remove a superfluous include path for
the sudoers plugin.
2010-05-28 10:41:58 -04:00
Todd C. Miller
b8b006a885
Move code common to sudo and the sudoers plugin to a convenience library,
...
libcommon. Removes the need to make links in the sudoers plugin dir
and reduces re-compilation of duplicate object files.
2010-05-27 17:27:36 -04:00
Todd C. Miller
8a8830e34f
Substitute @SHELL@ into Makefiles
2010-05-21 21:29:44 -04:00
Todd C. Miller
51b558e753
Update to libtool-2.2.6b. I haven't made any local modifications
...
this time, which should be OK since we install sudo_noexec.so by
hand now.
2010-05-21 17:59:47 -04:00
Todd C. Miller
6b370cb020
Use libtool to clean objects
2010-05-21 16:53:21 -04:00
Todd C. Miller
95d939f9bb
Install sudo_plugin.h as part of "make install" and make other install
...
targets callable from the top-level Makefile
2010-05-21 15:31:36 -04:00
Todd C. Miller
5e9ec6a365
Fix building with non-BSD versions of make such as GNU make.
...
Requires VPATH support, which should be in any non-neolithic make.
2010-04-30 12:18:06 -04:00
Todd C. Miller
0c7e3235f6
Remove extraneous $srcdir and use more .c.lo and .c.o rules instead
...
of explicit rules in the dependency.
2010-04-30 11:14:31 -04:00
Todd C. Miller
43b6359df3
Fix out-of-tree builds
2010-04-04 14:01:21 -04:00
Todd C. Miller
ba9d2f5bb6
Play more nicely with libtool and let it build libreplace (was libmissing)
...
for us.
2010-03-18 11:42:12 -04:00
Todd C. Miller
d1d6afaef0
Quiet a libtool warning
2010-03-15 07:01:51 -04:00
Todd C. Miller
b883670a32
Build libmissing in two flavors (one PIC one non-PIC) and link with the
...
appropriate one.
2010-03-14 18:01:17 -04:00
Todd C. Miller
6b4d97ebc3
Add strdup and strndup to compat
2010-03-12 17:11:11 -05:00
Todd C. Miller
c81a62df34
Use $(OBJS) instead of sample_plugin.lo
2010-03-05 14:44:04 -05:00
Todd C. Miller
7200af0ce1
Add missing compat bits
2010-02-21 21:15:38 -05:00
Todd C. Miller
b3176134cb
compat files should not include sudo.h
...
wire up compat in sample plugin
2010-02-21 16:41:19 -05:00
Todd C. Miller
3b354e36f3
Sample plugin demonstrating the sudo plugin API
2010-02-20 09:42:16 -05:00