[Asterisk-cvs] libpri Makefile,1.11,1.11.2.1

russell at lists.digium.com russell at lists.digium.com
Sun Dec 26 20:34:07 CST 2004


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

Modified Files:
      Tag: v1-0
	Makefile 
Log Message:
fix for SELinux (bug #3147)


Index: Makefile
===================================================================
RCS file: /usr/cvsroot/libpri/Makefile,v
retrieving revision 1.11
retrieving revision 1.11.2.1
diff -u -d -r1.11 -r1.11.2.1
--- Makefile	31 Aug 2004 17:40:59 -0000	1.11
+++ Makefile	27 Dec 2004 01:29:12 -0000	1.11.2.1
@@ -66,6 +66,7 @@
 	mkdir -p $(INSTALL_PREFIX)/usr/include
 	install -m 644 libpri.h $(INSTALL_PREFIX)/usr/include
 	install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)/usr/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)/usr/lib ; ln -sf libpri.so.1 libpri.so )
 	install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)/usr/lib
 	/sbin/ldconfig




More information about the svn-commits mailing list