the rpm scriptlets used in ecryptfs-utils are:
> rpm -qp --scripts ecryptfs-utils-111-7.3.x86_64.rpm
postinstall scriptlet (using /bin/sh):
if [ -x /usr/bin/chkstat ]; then
/usr/bin/chkstat -n --set --system /usr/sbin/mount.ecryptfs_private
fi
/usr/sbin/pam-config -a --ecryptfs
postuninstall scriptlet (using /bin/sh):
if [ "$1" -eq 0 ]; then
/usr/sbin/pam-config -d --ecryptfs
fi
verify scriptlet (using /bin/sh):
/usr/bin/chkstat -n --warn --system -e /usr/sbin/mount.ecryptfs_private 1>&2