Commit Graph

52 Commits

Author SHA1 Message Date
xtraeme efff6f1100 Extend do_envsys() and check if the sensor_* files in /etc/powerd/scripts
are installed.
2007-07-15 14:31:08 +00:00
xtraeme 307b2a722c Do not install fixsb anymore, which was removed recently. 2007-07-15 13:02:41 +00:00
jnemeth e135b05bdf fix error message for obsolete_libs 2007-07-15 03:04:39 +00:00
ad 96d0aa8e9b fixsb has done its job. 2007-07-14 21:20:31 +00:00
xtraeme 37b598db93 Add do_envsys() that checks if /etc/envsys.conf exists. 2007-07-12 07:13:07 +00:00
xtraeme 4c67d94842 Update for /etc/rc.d/envsys. 2007-07-01 08:30:09 +00:00
pavel 511b2e988c Remove the remaining sendmail config files (including everything in
/usr/share/sendmail) from the obsolete list. Instead, remove them in the
"sendmail" postinstall item, which is disabled by default, to prevent
losing sendmail configuration on upgrade. Fixes the rest of
PR install/36180.
2007-06-08 22:24:07 +00:00
pavel 9188cd99a0 Separate postinstall checks in two groups: enabled and disabled by
default. Only the former checks/fixes are done if no items are given
on the command line. The latter must be requested explicitely.

Intended for "fixes" that are dangerous in some way, because they might
remove files that are still in use, for example.

Make the "sendmail" item disabled by default, it removes sendmail
configuration. Partly addresses PR install/36180.

Proposed on tech-userlevel, review and spelling fixes from lukem@.
2007-06-02 21:25:08 +00:00
kiyohara a0f7691122 Add btuartd.conf to bluetooth. 2007-04-11 07:16:28 +00:00
apb bc4861bd29 * Make postinstall's -s option accept several tgz files, either by
repeating the -s option, or by using a colon-separated list.
* Update postinstall(8) man page with some of the text used in
  etcupdate(8)'s description of the -s option.
* Remove an outdated comment about invoking etc/postinstall from
  the directory in which the tgz is extracted.
* Rename orig_SRC_DIR to SRC_ARG and make related changes.

Reviewed by lukem and martti.
2007-03-26 18:09:42 +00:00
plunky c6f8856e3c For sdpd(8), change default user/group from nobody/nobody to _sdpd/_sdpd 2007-03-18 15:53:54 +00:00
apb 9271fd890c Revert previous. MAKEDEV.subr no longer exists. 2007-03-03 06:43:46 +00:00
apb 8c150ea895 Convert the guts of do_makedev() into a loop that checks both MAKEDEV
and MAKEDEV.subr.
2007-03-01 07:51:26 +00:00
elad f0d477cb85 Add perusertmp. Pointed out by Geoff Wing, thanks! 2007-02-05 02:34:30 +00:00
cbiere 4ce24268ac Added user and group "_timedc" for timedc. 2007-01-28 16:39:29 +00:00
lukem 287af45b8d Crank copyright.
Whitespace & linewrap consistency tweaks.
2006-12-05 10:26:28 +00:00
lukem 24891c430b Fix method to find pf.os so it works with '-s etc.tgz'.
PR 35185 by Valeriy E. Ushakov.

Don't bother to find pf.conf first; the code was a noisy no-op.
2006-12-05 10:18:41 +00:00
peter 7682107fa9 Check if /etc/pf.conf and /etc/pf.os exist and copy them if they don't.
Suggested by lukem@.
2006-11-26 12:05:21 +00:00
lukem 968ace8d2a /etc/postfix/post-install needs to be 555 not 444. 2006-11-14 00:04:01 +00:00
rpaulo e3c4f7c039 PR 34692: wpa_supplicant script.
By Jukka Salmi.
2006-10-07 16:50:34 +00:00
jmmv 15adcce63e Add a check to aid in the migration of motd contents between development
releases.  Suggested by tron@ and approved by silence in tech-userlevel@.
2006-09-23 08:27:52 +00:00
dbj 5671786b47 fix problem with file_exists_exact where it was returning false
for dangling symlinks because it was checking them with test -e
2006-09-12 01:15:16 +00:00
dbj ad69f7c05a fixes for building into case preserving, but case insensitive $DESTDIR
- have checkflist do a second possibly case insensitive check for
   files which are missing from DESTDIR
 - have postinstall require exact case matches for obsolete files
2006-09-11 22:16:10 +00:00
plunky 4f1cbddc12 update to bluetooth device attachment:
remove pseudo-device btdev(4) and inherent limitations

add bthub(4) which autoconfigures at bluetooth controllers as they
are enabled. bluetooth devices now attach here.

btdevctl(8) and its cache is updated to handle new semantics

etc/rc.d/btdevctl is updated to configure devices from a list
in /etc/bluetooth/btdevctl.conf
2006-09-10 15:45:55 +00:00
hubertf f83266c2e3 Explain that etcupdate(8) may do the job that postinstall(8) can't
do. (Example: fix master.passwd to include _rwhod and whatnot)

OK'd by lukem@
2006-08-18 12:02:55 +00:00
hubertf c200fdcc45 give a hint on how to fix the 'NOT FIXED' checks -> fix manually
OK'd by lukem@
2006-08-18 12:01:53 +00:00
plunky 885b13c515 rename btcontrol(8) as btdevctl(8) to make it fit with the NetBSD naming
scheme for control programs. This fixes pr 34051.
2006-08-13 09:03:21 +00:00
hubertf ac583aa32a Xref etcupdate from postinstall, and vice versa. 2006-08-11 20:28:22 +00:00
tron fdeefd9c3e Bluetooth fixes by Iain Hibbert:
Create "/etc/rc.d/btcontrol" to attach bluetooth devices at boot.
2006-07-26 11:14:55 +00:00
tron ebe62ad714 Bluetooth fixes by Iain Hibbert:
Remove bluetooth.conf(5) and config parsing from libbluetooth(3)
as this is no longer required.
2006-07-26 11:11:04 +00:00
tron 903cbf25d1 Create and populate "/etc/bluetooth". Based on patch submitted by
Iain Hibbert on "current-users" mailing list.
2006-07-15 21:32:58 +00:00
gdamore a5c89047c0 Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.)  This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.
2006-06-19 15:44:33 +00:00
tron 3421be369d Remove "/var/spool/clientmqueue" and "/var/spool/mqueue" from the list
of obsolete directories and handle them via the "sendmail" item in
postinstall(8), too. These directories are of course necessary on
systems using the "sendmail" package.

Problem pointed out by Hisashi T Fujinaka on "current-users" mailing list.
2006-06-09 21:19:40 +00:00
tron c5ddcac518 Remove the "sendmail" configuration files and startup scripts from the
list of obsolete files. Resurrect the "sendmail" item which now flags
these files as obsolete unless the "sendmail" package is installed.
2006-06-09 12:18:30 +00:00
simonb b93b04bf77 Sort the obsolete rc.conf(5) variables to check, and only check
sysctl once(!).
2006-06-08 20:58:38 +00:00
tron 300dbf11e5 Check whether user and group "postfix" exist. 2006-05-30 19:31:13 +00:00
tron 73575a68a2 After removal of "sendmail":
- Remove the code dealing with "sendmail" updates.
- Don't check for the existence of user and group "smmsp" any more.
- Remove "/etc/rc.d/smmsp" and "/etc/rc.d/sendmail" because there defaults
  have been removed from "/etc/defaults/rc.conf".
2006-05-30 05:53:24 +00:00
simonb b8fb2aedbe Sync rc.d file list with etc/rc.d/Makefile, adding ftpd, hostapd, and
irdaattach.
2006-05-14 15:46:40 +00:00
tron 2d77f6d3d5 Add "iscsi" target which install the iSCSI configuration files.
This will stop e.g. "/etc/security" complaining about these files
missing after a sucessful run of "postinstall"
2006-05-12 12:43:28 +00:00
tron ef526ff868 Check for and install "/etc/rc.d/iscsi_target". 2006-05-12 07:16:47 +00:00
tsarna 55551a76e2 Add postinstall item for the rwhod de-preivledging.
Check and correct permissions on /var/rwho files so rwhod
will be able to update them.
2006-02-14 17:14:21 +00:00
lukem 547b2d58b6 Add checks for _rwhod group & user.
Noted by Patrick Welche on current-users.
2005-11-22 22:10:52 +00:00
lukem 2484bb2972 Fix do_defaults() so that it errors when there's a mismatch.
Noted by Matthias Scheler.
2005-10-02 23:46:48 +00:00
lukem 922ca28a60 Add "named" item to move /etc/namedb/named.conf to /etc/named.conf.
Per discussion with Matthias Scheler.
2005-09-12 23:16:15 +00:00
lukem d50a2d0385 Reorganize items so that they're in alphabetical order except that
"obsolete" is moved to the end.
Clean up some comments.
2005-09-12 15:48:29 +00:00
lukem d4b0741135 not all items can be fixed automatically 2005-09-12 15:42:12 +00:00
lukem 898fa7c553 Fix the installation of /etc/defaults/pf.boot.conf so that it works
with -s etc.tgz.
2005-09-04 10:13:15 +00:00
peter 9c1da17e90 pf needs to be started after the network is up, because some pf rules
derive IP address(es) from the interface (e.g "... from any to fxp0").
This however, creates window for possible attacks from the network.

Implement the solution proposed by YAMAMOTO Takashi:
Add /etc/defaults/pf.boot.conf and load it with the /etc/rc.d/pf_boot
script before starting the network. People who don't like the default
rules can override it with their own /etc/pf.boot.conf.
The default rules have been obtained from OpenBSD.

No objections on: tech-security
2005-08-23 12:12:56 +00:00
lukem ea2bd1f523 If /etc/ssh/sshd_config contains the following deprecated options,
comment them out:
	rhostsauthentication
	verifyreversemapping
	reversemappingcheck
2005-04-26 01:07:35 +00:00
lukem 5cae62926d do_postinstall() is now unnecessary; remove it.
If extracting -s etc.tgz to a temporary directory, don't run the
embedded etc/postinstall since it doesn't exist anymore.

Remember the original SRC_DIR passed in (e.g, "-s etc.tgz") and
display that in the suggested "fix" message, rather than a temporary
path to the extracted etc.tgz which won't be correct for the next run.
2005-04-17 15:38:34 +00:00