ports/154002: [patch] update net/asterisk to 1.8.2 and fix configs permissions

Alexander Brovikov alexander at brovikov.ru
Fri Jan 14 23:30:10 UTC 2011


>Number:         154002
>Category:       ports
>Synopsis:       [patch] update net/asterisk to 1.8.2 and fix configs permissions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 14 23:30:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Brovikov
>Release:        8.1-RELEASE
>Organization:
>Environment:
FreeBSD vbox 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Update net/asterisk port to 1.8.2 and fix configs permissions.
>How-To-Repeat:

>Fix:
Patch in attach.

Patch attached with submission follows:

diff -ur /usr/ports/net/asterisk.orig/Makefile /usr/ports/net/asterisk/Makefile
--- /usr/ports/net/asterisk.orig/Makefile	2010-12-29 17:47:09.000000000 +0500
+++ /usr/ports/net/asterisk/Makefile	2011-01-15 03:27:27.000000000 +0500
@@ -6,8 +6,8 @@
 #
 
 PORTNAME=	asterisk
-PORTVERSION=	1.8.1.1
-PORTREVISION=	1
+PORTVERSION=	1.8.2
+PORTREVISION=	0
 CATEGORIES=	net
 MASTER_SITES=	http://downloads.asterisk.org/pub/telephony/asterisk/ \
 		http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
diff -ur /usr/ports/net/asterisk.orig/distinfo /usr/ports/net/asterisk/distinfo
--- /usr/ports/net/asterisk.orig/distinfo	2010-12-28 18:50:51.000000000 +0500
+++ /usr/ports/net/asterisk/distinfo	2011-01-15 03:27:49.000000000 +0500
@@ -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
diff -ur /usr/ports/net/asterisk.orig/files/patch-Makefile /usr/ports/net/asterisk/files/patch-Makefile
--- /usr/ports/net/asterisk.orig/files/patch-Makefile	2010-12-28 18:50:51.000000000 +0500
+++ /usr/ports/net/asterisk/files/patch-Makefile	2011-01-15 04:05:37.000000000 +0500
@@ -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} ;\


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list