"Fossies" - the Fresh Open Source Software Archive

Member "opensips-3.0.1/packaging/freebsd/files/patch-Makefile" (1 Oct 2019, 3679 Bytes) of package /linux/misc/opensips-3.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 --- Makefile.orig	Thu Dec 13 18:49:12 2007
    2 +++ Makefile	Thu Dec 13 21:49:54 2007
    3 @@ -48,11 +48,11 @@
    4  skip_modules?=
    5  
    6  # if not set on the cmd. line or the env, exclude this modules:
    7 -exclude_modules?= jabber cpl_c mysql postgres osp unixodbc \
    8 -	avp_radius auth_radius group_radius uri_radius xmpp \
    9 +exclude_modules?= 	$(MYSQL) $(POSTGRESQL) $(CPL) $(SNMPSTATS) $(TLSOPS) $(UNIXODBC) \
   10 +	jabber osp avp_radius auth_radius group_radius uri_radius xmpp \
   11  	presence presence_xml presence_mwi pua pua_bla pua_mi \
   12  	pua_usrloc pua_xmpp rls mi_xmlrpc perl snmpstats db_perlvdb \
   13 -	ldap carrierroute h350 xcap_client db_berkeley seas
   14 +	ldap carrierroute h350 xcap_client db_berkeley
   15  ifeq ($(TLS),)
   16  	exclude_modules+= tlsops
   17  endif
   18 @@ -392,24 +392,11 @@
   19  		
   20  # note: on solaris 8 sed: ? or \(...\)* (a.s.o) do not work
   21  install-cfg: $(cfg-prefix)/$(cfg-dir)
   22 -		sed -e "s#/usr/.*lib/$(NAME)/modules/#$(modules-target)#g" \
   23 -			< etc/$(NAME).cfg > $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample0
   24 -		sed -e "s#/usr/.*etc/$(NAME)/tls/#$(cfg-target)tls/#g" \
   25 -			< $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample0 \
   26 -			> $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample
   27 -		rm -fr $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample0
   28 -		chmod 644 $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample
   29 -		if [ -z "${skip_cfg_install}" -a \
   30 -				! -f $(cfg-prefix)/$(cfg-dir)$(NAME).cfg ]; then \
   31 -			mv -f $(cfg-prefix)/$(cfg-dir)$(NAME).cfg.sample \
   32 -				$(cfg-prefix)/$(cfg-dir)$(NAME).cfg; \
   33 -		fi
   34  		# radius dictionary
   35 -		$(INSTALL_TOUCH) $(cfg-prefix)/$(cfg-dir)/dictionary.opensips.sample
   36 -		$(INSTALL_CFG) etc/dictionary.opensips \
   37 -			$(cfg-prefix)/$(cfg-dir)/dictionary.opensips.sample
   38 +		$(INSTALL_TOUCH) $(cfg-prefix)/$(cfg-dir)/dictionary.opensips.default
   39 +		$(INSTALL_CFG) etc/dictionary.opensips $(cfg-prefix)/$(cfg-dir)/dictionary.opensips.default
   40  		if [ ! -f $(cfg-prefix)/$(cfg-dir)/dictionary.opensips ]; then \
   41 -			mv -f $(cfg-prefix)/$(cfg-dir)/dictionary.opensips.sample \
   42 +			cp -f $(cfg-prefix)/$(cfg-dir)/dictionary.opensips.default \
   43  				$(cfg-prefix)/$(cfg-dir)/dictionary.opensips; \
   44  		fi
   45  		# opensipsctl config
   46 @@ -445,7 +432,7 @@
   47  		sed -e "s#/usr/local/lib/opensips#$(lib-target)#g" | \
   48  		sed -e "s#/usr/local/etc/opensips#$(cfg-target)#g"  >/tmp/opensipsctl
   49  		$(INSTALL_TOUCH) $(bin-prefix)/$(bin-dir)/opensipsctl
   50 -		$(INSTALL_BIN) /tmp/opensipsctl $(bin-prefix)/$(bin-dir)
   51 +		$(BSD_INSTALL_SCRIPT) /tmp/opensipsctl $(bin-prefix)/$(bin-dir)
   52  		rm -fr /tmp/opensipsctl
   53  		sed -e "s#/usr/local/sbin#$(bin-target)#g" \
   54  			< scripts/opensipsctl.base > /tmp/opensipsctl.base
   55 @@ -492,10 +479,10 @@
   56  		sed -e "s#/usr/local/lib/opensips#$(lib-target)#g" | \
   57  		sed -e "s#/usr/local/etc/opensips#$(cfg-target)#g"  >/tmp/opensipsdbctl
   58  		$(INSTALL_TOUCH) $(bin-prefix)/$(bin-dir)/opensipsdbctl
   59 -		$(INSTALL_BIN) /tmp/opensipsdbctl $(bin-prefix)/$(bin-dir)
   60 +		$(BSD_INSTALL_SCRIPT) /tmp/opensipsdbctl $(bin-prefix)/$(bin-dir)
   61  		rm -fr /tmp/opensipsdbctl
   62  		$(INSTALL_TOUCH)   $(bin-prefix)/$(bin-dir)/$(NAME)unix
   63 -		$(INSTALL_BIN) utils/$(NAME)unix/$(NAME)unix $(bin-prefix)/$(bin-dir)
   64 +		$(BSD_INSTALL_SCRIPT) utils/$(NAME)unix/$(NAME)unix $(bin-prefix)/$(bin-dir)
   65  		# install dbtext stuff
   66  		mkdir -p $(modules-prefix)/$(lib-dir)/opensipsctl ; \
   67  		sed -e "s#/usr/local/share/opensips#$(data-target)#g" \
   68 @@ -624,9 +611,7 @@
   69  			if [ -f modules/"$$r"/README ]; then \
   70  				$(INSTALL_TOUCH)  $(doc-prefix)/$(doc-dir)/README ; \
   71  				$(INSTALL_DOC)  modules/"$$r"/README  \
   72 -									$(doc-prefix)/$(doc-dir)/README ; \
   73 -				mv -f $(doc-prefix)/$(doc-dir)/README \
   74 -						$(doc-prefix)/$(doc-dir)/README."$$r" ; \
   75 +					$(doc-prefix)/$(doc-dir)/README."$$r" ; \
   76  			fi ; \
   77  		fi ; \
   78  	done