~ubuntu-branches/debian/sid/kamailio/sid

« back to all changes in this revision

Viewing changes to .pc/fix_export.patch/Makefile

  • Committer: Package Import Robot
  • Author(s): Victor Seva
  • Date: 2014-01-06 11:47:13 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140106114713-t8xidp4arzrnyeya
Tags: 4.1.1-1
* New upstream release
* debian/patches:
  - add upstream fixes
* Added tls outbound websocket autheph dnssec modules
  - openssl exception added to their license
* removing sparc and ia64 from supported archs
  for mono module (Closes: #728915)

Show diffs side-by-side

added added

removed removed

Lines of Context:
622
622
        $(TAR) -C .. \
623
623
                --exclude=$(notdir $(CURDIR))/test* \
624
624
                --exclude=$(notdir $(CURDIR))/tmp* \
 
625
                --exclude=$(notdir $(CURDIR))/debian \
625
626
                --exclude=$(notdir $(CURDIR))/debian/$(MAIN_NAME) \
626
627
                --exclude=$(notdir $(CURDIR))/debian/$(MAIN_NAME)-* \
627
628
                --exclude=$(notdir $(CURDIR))/$(MAIN_NAME)_tls* \
1011
1012
.PHONY: clean_makefile_vars clean-makefile-vars
1012
1013
        rm -f Makefile.vars
1013
1014
 
 
1015
# clean everything generated - shortcut on maintainer-clean
 
1016
.PHONY: pure
 
1017
pure: maintainer-clean
 
1018
 
 
1019
.PHONY: install_initd_debian install-initd-debian
 
1020
install_initd_debian install-initd-debian:
 
1021
        sed -e "s#DAEMON=/usr/sbin/kamailio#DAEMON=$(bin_prefix)/$(bin_dir)$(NAME)#g" \
 
1022
                -e "s#NAME=kamailio#NAME=$(NAME)#g" \
 
1023
                -e "s#DESC=Kamailio#DESC=$(NAME)#g" \
 
1024
                -e "s#HOMEDIR=/var/run/kamailio#HOMEDIR=/var/run/$(NAME)#g" \
 
1025
                -e "s#DEFAULTS=/etc/default/kamailio#DEFAULTS=/etc/default/$(NAME)#g" \
 
1026
                -e "s#CFGFILE=/etc/kamailio/kamailio.cfg#CFGFILE=$(cfg_prefix)/$(cfg_dir)$(NAME).cfg#g" \
 
1027
                < pkg/kamailio/deb/debian/kamailio.init \
 
1028
                > /etc/init.d/$(NAME)
 
1029
        chmod +x /etc/init.d/$(NAME)
 
1030
        sed -e "s#RUN_KAMAILIO=no#RUN_KAMAILIO=yes#g" \
 
1031
                < pkg/kamailio/deb/debian/kamailio.default \
 
1032
                > /etc/default/$(NAME)
 
1033
        mkdir -p /var/run/$(NAME)
 
1034
        adduser --quiet --system --group --disabled-password \
 
1035
        --shell /bin/false --gecos "$(NAME)" \
 
1036
        --home /var/run/$(NAME) $(NAME)
 
1037
        chown $(NAME):$(NAME) /var/run/$(NAME)
 
1038
 
 
1039
.PHONY: install_initd_centos install-initd-centos
 
1040
install_initd_centos install-initd-centos:
 
1041
        sed -e "s#KAM=/usr/sbin/kamailio#KAM=$(bin_prefix)/$(bin_dir)$(NAME)#g" \
 
1042
                -e "s#PROG=kamailio#PROG=$(NAME)#g" \
 
1043
                -e "s#DEFAULTS=/etc/default/kamailio#DEFAULTS=/etc/default/$(NAME)#g" \
 
1044
                -e "s#PID_FILE=/var/run/kamailio.pid#PID_FILE=/var/run/$(NAME).pid#g" \
 
1045
                -e "s#LOCK_FILE=/var/lock/subsys/kamailio#LOCK_FILE=/var/lock/subsys/$(NAME)#g" \
 
1046
                -e "s#KAMCFG=/etc/kamailio/kamailio.cfg#KAMCFG=$(cfg_prefix)/$(cfg_dir)$(NAME).cfg#g" \
 
1047
                < pkg/kamailio/rpm/kamailio.init \
 
1048
                > /etc/init.d/$(NAME)
 
1049
        chmod +x /etc/init.d/$(NAME)
 
1050
        sed -e "s#RUN_KAMAILIO=no#RUN_KAMAILIO=yes#g" \
 
1051
                -e "s#USER=kamailio#USER=$(NAME)#g" \
 
1052
                -e "s#GROUP=kamailio#GROUP=$(NAME)#g" \
 
1053
                < pkg/kamailio/rpm/kamailio.default \
 
1054
                > /etc/default/$(NAME)
 
1055
        /usr/sbin/groupadd -r $(NAME)
 
1056
        /usr/sbin/useradd -r -g $(NAME) -s /bin/false -c "Kamailio Daemon" \
 
1057
                  -d ${lib_prefix}/${lib_dir} $(NAME)
 
1058
 
1014
1059
.PHONY: dbschema
1015
1060
dbschema:
1016
1061
        -@echo "Build database schemas"