aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mailwrapper
Commit message (Collapse)AuthorAgeFilesLines
* Make use of the getlocalbase() function for run-time adjustment of theStefan Eßer2020-11-181-1/+1
| | | | | | | | | | | | | | | | | | local software base directory, as committed in SVN rev. 367813. The pkg and mailwrapper programs used the LOCALBASE environment variable for this purpose and this functionality is preserved by getlocalbase(). After this change, the value of the user.localbase sysctl variable is used if present (and not overridden in the environment). The nvmecontrol program gains support of a dynamic path to its plugin directory with this update. Differential Revision: https://reviews.freebsd.org/D27237 Notes: svn path=/head/; revision=367816
* Revert the whole getlocalbase() set of changes while a different design isScott Long2020-11-151-4/+2
| | | | | | | hashed out. Notes: svn path=/head/; revision=367711
* Fix the previous revision, it suffered from an incomplete change to theScott Long2020-11-151-2/+2
| | | | | | | | getlocalbase API. Also don't erroneously subtract the lenth from the buffer a second time. Notes: svn path=/head/; revision=367702
* Replace hardcoded references to _PATH_LOCALBASE with calls to getlocalbase.3Scott Long2020-11-141-2/+4
| | | | | | | Reviewed by: imp, se Notes: svn path=/head/; revision=367687
* Replace literal uses of /usr/local in C sources with _PATH_LOCALBASEStefan Eßer2020-10-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Literal references to /usr/local exist in a large number of files in the FreeBSD base system. Many are in contributed software, in configuration files, or in the documentation, but 19 uses have been identified in C source files or headers outside the contrib and sys/contrib directories. This commit makes it possible to set _PATH_LOCALBASE in paths.h to use a different prefix for locally installed software. In order to avoid changes to openssh source files, LOCALBASE is passed to the build via Makefiles under src/secure. While _PATH_LOCALBASE could have been used here, there is precedent in the construction of the path used to a xauth program which depends on the LOCALBASE value passed on the compiler command line to select a non-default directory. This could be changed in a later commit to make the openssh build consistently use _PATH_LOCALBASE. It is considered out-of-scope for this commit. Reviewed by: imp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D26942 Notes: svn path=/head/; revision=367075
* mailwrapper: switch mailer.conf to CONFSKyle Evans2020-06-291-3/+3
| | | | | | | | | | This matches what was already being done in dma(8), and should again make this merge with etcupdate/mergemaster. Reported by: jhb Notes: svn path=/head/; revision=362787
* pkgbase: resolve mailer.conf conflict WITHOUT_SENDMAILKyle Evans2020-06-021-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When WITHOUT_SENDMAIL is set, we end up with two different mailer.conf that conflict, and hilarity ensues. There's currently three different places that we might install mailer.conf: - ^/etc/Makefile (package=runtime, contingent on MK_MAIL != no) - ^/libexec/dma/dmagent/Makefile (package=dma, contingent on MK_SENDMAIL != no) - ^/usr.sbin/mailwrapper/Makefile (package=utilities, contingent on not-installed) The mailwrapper installation will effectively never happen because the ^/etc one will first. This patch simplifies the whole situation; remove the ^/etc/Makefile version and install it primarily in mailwrapper if MK_MAILWRAPPER != "no". The scenarios covered in mailwrapper are: - sendmail(8) is installed, dma(8) may or may not be installed - neither sendmail(8) nor dma(8) is installed In the first scenario, sendmail(8) is dominant so we can go ahead and install the version in ^/etc/mail. In the unlisted scenario, sendmail(8) is not installed but dma(8) is, we'll let ^/libexec/dma/dmagent do the installation. In the second listed scenario, we still want to install an example mailer.conf so just install the base sendmail(8) version. Reviewed by: bapt MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D24924 Notes: svn path=/head/; revision=361720
* Sync with NetBSD/OpenBSD.Xin LI2020-04-161-46/+71
| | | | Notes: svn path=/head/; revision=360000
* Revert r326844Baptiste Daroussin2018-01-023-13/+10
| | | | | | | | | | There has been some fallout from the change. The change itself was not valueable enough to spend time investigating the corner cases, let's just back it out. Reported by: flo Notes: svn path=/head/; revision=327494
* Replace usage of fparselen(3) by a getline(3)Baptiste Daroussin2017-12-143-10/+13
| | | | | | | This allow to remove the dependency on libutil Notes: svn path=/head/; revision=326844
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-272-2/+6
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Convert absolute links to relative links.Rodney W. Grimes2017-03-071-7/+7
| | | | | | | | | | Style.Makefile(9) has been ignored to produce minimal diffs. Approved by: grehan (mentor) MFC after: 1 week Notes: svn path=/head/; revision=314833
* usr.sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-1/+1
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314659
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-192-5/+20
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * \ Merge head from 7/28Simon J. Gerraty2014-08-191-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | | Merge from headSimon J. Gerraty2014-05-081-1/+1
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | | | Allow mailwrapper to use mailer.conf from localbase (respecting LOCALBASE ↵Baptiste Daroussin2014-08-262-5/+20
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | env var if set) Phabric: https://reviews.freebsd.org/D412 Reviewed by: bdrewery MFC after: 2 weeks Relnotes: yes Notes: svn path=/head/; revision=270675
* | | use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-201-1/+1
| |/ |/| | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* | Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
|/ | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* Create the /bin/rmail symlink (which mailers such as postfixMark Murray2010-10-121-0/+4
| | | | | | | | | | | | and Exim can use). This is something I thought I committed MONTHS ago, but it appears that I fatfingered it and made a local commit. Pass the pointy hat, please. Notes: svn path=/head/; revision=213749
* Sync with OpenBSD:Xin LI2010-03-302-6/+5
| | | | | | | | | | | | - avoid coredump when there's only one token on a line; - Use calloc(); - Remove a line inherited from example mdoc. Obtained from: OpenBSD MFC after: 1 month Notes: svn path=/head/; revision=205938
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | Notes: svn path=/head/; revision=201390
* Markup fixes.Ruslan Ermilov2006-09-291-3/+1
| | | | Notes: svn path=/head/; revision=162806
* Update NetBSD and OpenBSD SCM tags to match the reality. Note thatXin LI2006-08-071-2/+2
| | | | | | | | | NetBSD revisions 1.8 and 1.9 are not actually applied to our code base because we have solved the problem differently, therefore, these changes can be safely skipped. Notes: svn path=/head/; revision=161038
* Merge all applicable NetBSD and OpenBSD improvements over this manpageXin LI2006-08-071-9/+11
| | | | | | | | | | | | | till NetBSD mailwrapper.8,v 1.11 and OpenBSD mailwrapper.8,v 1.8: - Separate exit status out from diagnostics section. - Fix typos. Obtained from: NetBSD, OpenBSD MFC After: Along with mailwrapper(8) updates. Notes: svn path=/head/; revision=161036
* Cleanups for mailwrapper(8):Xin LI2006-06-062-69/+42
| | | | | | | | | | | | | | | | | | - K&R -> ANSI prototype [O] - Do not bother to do free right before exit() or execve() [O] - Remove some dead code in addarg() - Make additional parameters specified in mailer.conf(5) actually work and document the fact. [N] - Avoid using __progname but instead use getprogname() and setprogname() to provide more sensible messages. [O, N] - Update $OpenBSD$ and $NetBSD$ to reflect the fact that we have sync'ed with their code. - WARNS=6 Obtained from/Inspired by: OpenBSD [O], NetBSD [N] (partially) Notes: svn path=/head/; revision=159326
* Reimplementation of world/kernel build options. For details, see:Ruslan Ermilov2006-03-171-4/+6
| | | | | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine) Notes: svn path=/head/; revision=156813
* Replaced afterinstall: with FILES.Ruslan Ermilov2004-10-181-3/+3
| | | | Notes: svn path=/head/; revision=136670
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+1
| | | | Notes: svn path=/head/; revision=131500
* Do not install SYMLINKS if both NO_MAILWRAPPER andJohan Karlsson2004-01-171-0/+2
| | | | | | | | | | | | | NO_SENDMAIL is defined. PR: 57058 Reported by: Henri Hennebert <hlh@cocoon.cercle.be> Melvyn Sopacua on current@ Submitted by: ru@ MFC after: 2 weeks Notes: svn path=/head/; revision=124644
* add FBSDIDPhilippe Charnier2003-07-061-1/+3
| | | | Notes: svn path=/head/; revision=117280
* mdoc(7) police: Scheduled sweep.Ruslan Ermilov2003-02-241-1/+1
| | | | Notes: svn path=/head/; revision=111447
* Give more information to users replacing sendmail regarding periodic'sGregory Neil Shapiro2003-02-081-0/+11
| | | | | | | | | submit mail queue check. PR: docs/38924 Notes: svn path=/head/; revision=110574
* Drop support for COPY, -c has been the default mode of install(1)Ruslan Ermilov2002-07-291-1/+1
| | | | | | | | | for a long time now. Approved by: bde Notes: svn path=/head/; revision=100872
* If NO_MAILWRAPPER is set, and sendmail is still enabled, then installPeter Wemm2002-07-241-0/+8
| | | | | | | a direct symlink to sendmail. Notes: svn path=/head/; revision=100639
* The .Nm utilityPhilippe Charnier2002-07-141-3/+5
| | | | Notes: svn path=/head/; revision=99968
* de-__P()Alfred Perlstein2002-07-111-4/+4
| | | | Notes: svn path=/head/; revision=99800
* Add the missing hoststat and purgestat commands. These are normallyGregory Neil Shapiro2002-04-051-0/+2
| | | | | | | | | | | symlinks to the sendmail binary but in FreeBSD's case, they are symlinks to mailwrapper. Submitted by: tisco MFC after: 4 days Notes: svn path=/head/; revision=93858
* Don't free memory that was never allocated. This fixes a core dump inDima Dorfman2001-08-091-1/+0
| | | | | | | | | | the case where both the config file and the default MTA don't exist. PR: 29521 Submitted by: marius@alchemy.franken.de Notes: svn path=/head/; revision=81344
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-2/+2
| | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029