Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 458114
Collapse All | Expand All

(-)a/files/gradm-2.2.1.201012301333.patch (-1 lines)
Lines 24-30 Link Here
24
                       $(MKNOD) -m 0622 $(DESTDIR)/dev/grsec c 1 13 ; \
24
                       $(MKNOD) -m 0622 $(DESTDIR)/dev/grsec c 1 13 ; \
25
               fi \
25
               fi \
26
       fi
26
       fi
27
+      @mkdir -p $(DESTDIR)/etc/udev/rules.d
28
       @if [ -d $(DESTDIR)/etc/udev/rules.d ] ; then \
27
       @if [ -d $(DESTDIR)/etc/udev/rules.d ] ; then \
29
               echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
28
               echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
30
               echo "KERNEL==\"grsec\",          MODE=\"0622\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
29
               echo "KERNEL==\"grsec\",          MODE=\"0622\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
(-)a/files/respect-gentoo-env.patch (-1 lines)
Lines 37-43 diff -Naur gradm2.orig//Makefile gradm2/Makefile Link Here
37
-              echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
37
-              echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
38
-              echo "KERNEL==\"grsec\",          MODE=\"0622\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
38
-              echo "KERNEL==\"grsec\",          MODE=\"0622\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
39
-              echo "LABEL=\"permissions_end\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
39
-              echo "LABEL=\"permissions_end\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
40
+      @mkdir -p $(DESTDIR)/lib/udev/rules.d
41
+      @if [ -d $(DESTDIR)/lib/udev/rules.d ] ; then \
40
+      @if [ -d $(DESTDIR)/lib/udev/rules.d ] ; then \
42
+              echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/lib/udev/rules.d/80-grsec.rules ; \
41
+              echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/lib/udev/rules.d/80-grsec.rules ; \
43
+              echo "KERNEL==\"grsec\",          MODE=\"0622\"" >> $(DESTDIR)/lib/udev/rules.d/80-grsec.rules ; \
42
+              echo "KERNEL==\"grsec\",          MODE=\"0622\"" >> $(DESTDIR)/lib/udev/rules.d/80-grsec.rules ; \
(-)a/gradm-2.9.1.201301041755.ebuild (-3 / +5 lines)
Lines 30-36 src_prepare() { Link Here
30
       epatch "${FILESDIR}"/respect-gentoo-env.patch
30
       epatch "${FILESDIR}"/respect-gentoo-env.patch
31
       # Without respect-gentoo-env.patch it's /etc/udev in Makefile:
31
       # Without respect-gentoo-env.patch it's /etc/udev in Makefile:
32
       sed -i -e "s:/lib/udev:$(udev_get_udevdir):" Makefile || die
32
       sed -i -e "s:/lib/udev:$(get_udevdir):" Makefile || die
33
}
33
}
34
src_compile() {
34
src_compile() {
Lines 46-52 src_install() { Link Here
46
}
46
}
47
pkg_postinst() {
47
pkg_postinst() {
48
       udevadm control --reload-rules && udevadm trigger --action=add --sysname-match=grsec
48
       if path_exists /sbin/udevadm; then
49
               udevadm control --reload-rules && \
50
               udevadm trigger --action=add --sysname-match=grsec
51
       fi
49
       einfo
52
       einfo
50
       ewarn
53
       ewarn
51
       ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
54
       ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode"
52
-

Return to bug 458114