[Asterisk-cvs] libpri Makefile,1.13,1.14

markster at lists.digium.com markster at lists.digium.com
Sun Dec 26 18:15:48 CST 2004


Update of /usr/cvsroot/libpri
In directory mongoose.digium.com:/tmp/cvs-serv742

Modified Files:
	Makefile 
Log Message:
Fix for SE-Linux (bug #3147)


Index: Makefile
===================================================================
RCS file: /usr/cvsroot/libpri/Makefile,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- Makefile	15 Dec 2004 20:15:28 -0000	1.13
+++ Makefile	26 Dec 2004 23:10:54 -0000	1.14
@@ -78,6 +78,7 @@
 	mkdir -p $(INSTALL_PREFIX)/$(INSTALL_BASE)/include
 	install -m 644 libpri.h $(INSTALL_PREFIX)/$(INSTALL_BASE)/include
 	install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)/$(INSTALL_BASE)/lib
+	if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then  restorecon -v $(INSTALL_PREFIX)/$(INSTALL_BASE)/lib/$(DYNAMIC_LIBRARY); fi
 	( cd $(INSTALL_PREFIX)/$(INSTALL_BASE)/lib ; ln -sf libpri.so.1 libpri.so )
 	install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)/$(INSTALL_BASE)/lib
 	$(LDCONFIG)




More information about the svn-commits mailing list