Small Makefile problem with gradm 2.0.1
Posted: Tue Aug 10, 2004 1:47 pm
Seems like the Makefile of the latest gradm 2.0.1 has a small problem creating the grsec /etc directory tree:
Code that causes the problem:
Apparently, the
- Code: Select all
# make install
mkdir -p /sbin
/usr/bin/install -c -m 0755 gradm /sbin
/usr/bin/strip /sbin/gradm
/usr/bin/install -c -m 0700 grlearn /sbin
/usr/bin/strip /sbin/grlearn
mkdir -p -m 700 /etc/grsec
mv: cannot stat `/etc/grsec/acl': No such file or directory
make: *** [install] Error 1
Code that causes the problem:
- Code: Select all
@if [ ! -f $(DESTDIR)$(GRSEC_DIR)/policy ] ; then \
if [ ! -f $(DESTDIR)$(GRSEC_DIR)/acl ] ; then \
mv $(DESTDIR)$(GRSEC_DIR)/acl $(DESTDIR)$(GRSEC_DIR)/policy ; \
else \
$(INSTALL) -m 0600 policy $(DESTDIR)$(GRSEC_DIR) ; \
fi \
fi
Apparently, the
- Code: Select all
if [ ! -f $(DESTDIR)$(GRSEC_DIR)/acl ]
- Code: Select all
if [ -f $(DESTDIR)$(GRSEC_DIR)/acl ]