Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 20531 | Differences between
and this patch

Collapse All | Expand All

(-)selinux-small-2003011510-r3.ebuild (-2 / +6 lines)
Lines 40-46 Link Here
40
	ln -s /usr/src/linux ${WORKDIR}/lsm-2.4
40
	ln -s /usr/src/linux ${WORKDIR}/lsm-2.4
41
41
42
	# fix up policy makefile
42
	# fix up policy makefile
43
	cd ${WORKDIR}/policy
43
	cd ${WORKDIR}/selinux/policy
44
	sed -e 's:/usr/lib/selinux:/usr/flask:' < Makefile > Makefile.new
44
	sed -e 's:/usr/lib/selinux:/usr/flask:' < Makefile > Makefile.new
45
	mv -f Makefile.new Makefile
45
	mv -f Makefile.new Makefile
46
46
Lines 71-77 Link Here
71
			LDFLAGS="-L${S}/libsecure/src" setfiles \
71
			LDFLAGS="-L${S}/libsecure/src" setfiles \
72
			|| die "setfiles compile failed."
72
			|| die "setfiles compile failed."
73
	cd ${S}/utils/newrole
73
	cd ${S}/utils/newrole
74
		make CFLAGS="${CFLAGS} ${LIBSECURE} -lcrypt" \
74
		make CFLAGS="${CFLAGS} ${LIBSECURE} -DUSE_PAM -ldl -lpam -lpam_misc -lsecure -lcrypt" \
75
			|| die "newrole compile failed."
75
			|| die "newrole compile failed."
76
	cd ${S}/utils/run_init
76
	cd ${S}/utils/run_init
77
		make CFLAGS="${CFLAGS} ${LIBSECURE} -lcrypt" \
77
		make CFLAGS="${CFLAGS} ${LIBSECURE} -lcrypt" \
Lines 112-117 Link Here
112
}
112
}
113
113
114
pkg_postinst() {
114
pkg_postinst() {
115
        # Do the pam setup for newrole
116
        rm -f /etc/pam.d/newrols
117
        sed "/pam_rootok.so/d" /etc/pam.d/su > /etc/pam.d/newrole;        
118
115
        einfo
119
        einfo
116
	einfo "To recompile the policy and relabel the filesystem simply run:"
120
	einfo "To recompile the policy and relabel the filesystem simply run:"
117
        einfo "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
121
        einfo "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"

Return to bug 20531