freebsd-ports/audio/oss/files/pkg-install.in
Jung-uk Kim b92fb0c826 - Do not remove legacy_devices while uninstalling. It is useful
for reinstallation.
- Use @dirrmtry instead of @dirrm for lib/oss, lib/oss/etc, and
lib/oss/logs to preserve user data and to avoid errors when
deinstalling.
- Move files/pkg-message.in to pkg-message because it is static.
- Sort pkg-plist by destination paths.

Approved by:	glewis (mentor)
2007-10-12 16:13:14 +00:00

11 lines
256 B
Bash

#! /bin/sh
case $2 in
POST-INSTALL)
if ! test -f %%PREFIX%%/lib/oss/etc/installed_drivers; then
%%PREFIX%%/sbin/ossdetect -v
fi
if ! test -f %%PREFIX%%/lib/oss/etc/userdefs; then
echo "autosave_mixer yes" > %%PREFIX%%/lib/oss/etc/userdefs
fi
esac