1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- update to 1.8.2

- fix config file permissions

PR:		ports/154002
Submitted by:	Alexander Brovikov <alexander@brovikov.ru>
Approved by:	jadawin (mentor)
Feature safe:	yes
This commit is contained in:
Florian Smeets 2011-01-17 17:51:02 +00:00
parent 57c0219a8a
commit 93a5ead8aa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267917
6 changed files with 30 additions and 32 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= asterisk
PORTVERSION= 1.8.1.1
PORTREVISION= 1
PORTVERSION= 1.8.2
CATEGORIES= net
MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \
http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/

View File

@ -1,2 +1,2 @@
SHA256 (asterisk-1.8.1.1.tar.gz) = 71016372d81dd6c0b2977b8994aa626afa8aa71a2379005fc8fe30625ceedafa
SIZE (asterisk-1.8.1.1.tar.gz) = 26198619
SHA256 (asterisk-1.8.2.tar.gz) = 864a66bd2c6bed2799d5e42f3b71ad4ce13715aa615bf1a50fb7fb6233f4d42e
SIZE (asterisk-1.8.2.tar.gz) = 26237515

View File

@ -1,5 +1,5 @@
--- Makefile.orig 2010-12-28 10:32:35.000000000 +0100
+++ Makefile 2010-12-28 10:33:10.000000000 +0100
--- Makefile.orig 2010-12-08 03:51:05.000000000 +0500
+++ Makefile 2011-01-15 04:05:06.000000000 +0500
@@ -122,7 +122,7 @@
OVERWRITE=y
@ -23,16 +23,16 @@
ifeq ($(PROC),ppc)
_ASTCFLAGS+=-fsigned-char
@@ -232,7 +234,7 @@
ifeq ($(OSARCH),FreeBSD)
@@ -235,7 +237,7 @@
_ASTCFLAGS+=-march=i686
endif
# -V is understood by BSD Make, not by GNU make.
- BSDVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk)
+ BSDVERSION=$(OSVERSION)
_ASTCFLAGS+=$(shell if test $(BSDVERSION) -lt 500016 ; then echo "-D_THREAD_SAFE"; fi)
endif
@@ -460,13 +462,17 @@
@@ -463,13 +465,17 @@
done
$(INSTALL) -m 644 doc/core-en_US.xml $(DESTDIR)$(ASTDATADIR)/static-http;
if [ -d doc/tex/asterisk ] ; then \
@ -53,7 +53,7 @@
done
$(MAKE) -C sounds install
@@ -526,6 +532,7 @@
@@ -529,6 +535,7 @@
$(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/dictate"
$(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/meetme"
$(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/monitor"
@ -61,7 +61,7 @@
$(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/system"
$(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/tmp"
$(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/voicemail"
@@ -547,6 +554,7 @@
@@ -550,6 +557,7 @@
$(INSTALL) -d "$(DESTDIR)$(ASTDATADIR)/static-http"
$(INSTALL) -d "$(DESTDIR)$(ASTMANDIR)/man8"
$(INSTALL) -d "$(DESTDIR)$(AGI_DIR)"
@ -69,7 +69,7 @@
bininstall: _all installdirs $(SUBDIRS_INSTALL)
$(INSTALL) -m 755 main/asterisk $(DESTDIR)$(ASTSBINDIR)/
@@ -606,7 +614,7 @@
@@ -609,7 +617,7 @@
@exit 1
endif
@ -78,7 +78,7 @@
@if [ -x /usr/sbin/asterisk-post-install ]; then \
/usr/sbin/asterisk-post-install $(DESTDIR) . ; \
fi
@@ -648,29 +656,18 @@
@@ -651,29 +659,18 @@
else \
echo "Installing $$x" ; \
fi ; \
@ -101,9 +101,9 @@
- echo "Skipping config file $$x"; \
- continue; \
- fi ;\
+ $(INSTALL) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`-dist ; \
+ $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`-dist ; \
+ if [ ! -f $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` ]; then \
+ $(INSTALL) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`; \
+ $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`; \
fi ; \
- echo "Installing file $$x"; \
- $(INSTALL) -m 644 $$x $${dst} ;\

View File

@ -6,8 +6,7 @@
#
PORTNAME= asterisk
PORTVERSION= 1.8.1.1
PORTREVISION= 1
PORTVERSION= 1.8.2
CATEGORIES= net
MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \
http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/

View File

@ -1,2 +1,2 @@
SHA256 (asterisk-1.8.1.1.tar.gz) = 71016372d81dd6c0b2977b8994aa626afa8aa71a2379005fc8fe30625ceedafa
SIZE (asterisk-1.8.1.1.tar.gz) = 26198619
SHA256 (asterisk-1.8.2.tar.gz) = 864a66bd2c6bed2799d5e42f3b71ad4ce13715aa615bf1a50fb7fb6233f4d42e
SIZE (asterisk-1.8.2.tar.gz) = 26237515

View File

@ -1,5 +1,5 @@
--- Makefile.orig 2010-12-28 10:32:35.000000000 +0100
+++ Makefile 2010-12-28 10:33:10.000000000 +0100
--- Makefile.orig 2010-12-08 03:51:05.000000000 +0500
+++ Makefile 2011-01-15 04:05:06.000000000 +0500
@@ -122,7 +122,7 @@
OVERWRITE=y
@ -23,16 +23,16 @@
ifeq ($(PROC),ppc)
_ASTCFLAGS+=-fsigned-char
@@ -232,7 +234,7 @@
ifeq ($(OSARCH),FreeBSD)
@@ -235,7 +237,7 @@
_ASTCFLAGS+=-march=i686
endif
# -V is understood by BSD Make, not by GNU make.
- BSDVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk)
+ BSDVERSION=$(OSVERSION)
_ASTCFLAGS+=$(shell if test $(BSDVERSION) -lt 500016 ; then echo "-D_THREAD_SAFE"; fi)
endif
@@ -460,13 +462,17 @@
@@ -463,13 +465,17 @@
done
$(INSTALL) -m 644 doc/core-en_US.xml $(DESTDIR)$(ASTDATADIR)/static-http;
if [ -d doc/tex/asterisk ] ; then \
@ -53,7 +53,7 @@
done
$(MAKE) -C sounds install
@@ -526,6 +532,7 @@
@@ -529,6 +535,7 @@
$(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/dictate"
$(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/meetme"
$(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/monitor"
@ -61,7 +61,7 @@
$(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/system"
$(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/tmp"
$(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/voicemail"
@@ -547,6 +554,7 @@
@@ -550,6 +557,7 @@
$(INSTALL) -d "$(DESTDIR)$(ASTDATADIR)/static-http"
$(INSTALL) -d "$(DESTDIR)$(ASTMANDIR)/man8"
$(INSTALL) -d "$(DESTDIR)$(AGI_DIR)"
@ -69,7 +69,7 @@
bininstall: _all installdirs $(SUBDIRS_INSTALL)
$(INSTALL) -m 755 main/asterisk $(DESTDIR)$(ASTSBINDIR)/
@@ -606,7 +614,7 @@
@@ -609,7 +617,7 @@
@exit 1
endif
@ -78,7 +78,7 @@
@if [ -x /usr/sbin/asterisk-post-install ]; then \
/usr/sbin/asterisk-post-install $(DESTDIR) . ; \
fi
@@ -648,29 +656,18 @@
@@ -651,29 +659,18 @@
else \
echo "Installing $$x" ; \
fi ; \
@ -101,9 +101,9 @@
- echo "Skipping config file $$x"; \
- continue; \
- fi ;\
+ $(INSTALL) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`-dist ; \
+ $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`-dist ; \
+ if [ ! -f $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` ]; then \
+ $(INSTALL) $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`; \
+ $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`; \
fi ; \
- echo "Installing file $$x"; \
- $(INSTALL) -m 644 $$x $${dst} ;\