Commits

cellis_oidev committed 35222c5

1738 - cleanup makefiles for asterisk package

Comments (0)

Files changed (2)

components/asterisk/Makefile

 include ../../make-rules/configure.mk
 include ../../make-rules/ips.mk
 
-GCC_ROOT=/usr/gcc/4.6
 COMPILER=gcc
-CONFIGURE_OPTIONS	+= --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+CONFIGURE_OPTIONS	+= 	--sysconfdir=$(ETCDIR) 
+CONFIGURE_OPTIONS	+=	--localstatedir=/var
+CONFIGURE_OPTIONS	+=	--with-pic
+CONFIGURE_OPTIONS	+=	--enable-shared
+CONFIGURE_OPTIONS	+=	--disable-static
 
 CONFIGURE_OPTIONS.32	+= LDFLAGS="$(LDFLAGS)"
-CONFIGURE_OPTIONS.64    += LDFLAGS="$(LDFLAGS) -L/usr/lib/amd64 -m64 "
+CONFIGURE_OPTIONS.64    += LDFLAGS="$(LDFLAGS) -L$(USRLIBDIR)/$(MACH64) -m64 "
 
 CONFIGURE_OPTIONS.32    += CC="gcc -m32 -O0" CFLAGS="$(CFLAGS) -O0" CXXFLAGS="$(CXXFLAGS) -O0"
 CONFIGURE_OPTIONS.64	+= CC="gcc -m64 -O0" CFLAGS="$(CFLAGS) -O0" CXXFLAGS="$(CXXFLAGS) -m64 -O0"
-CONFIGURE_OPTIONS+=     --with-pic --enable-shared --disable-static
 
-COMPONENT_PRE_CONFIGURE_ACTION+=        $(CP) -r $(SOURCE_DIR)/* $(@D); touch $(@D)/.cleancount
+COMPONENT_PRE_CONFIGURE_ACTION += $(CP) -r $(SOURCE_DIR)/* $(@D); touch $(@D)/.cleancount
 
-COMPONENT_PRE_BUILD_ACTION+=		(mkdir -p $(PROTO_DIR)/var/lib/asterisk/phoneprov)
-COMPONENT_POST_BUILD_ACTION+=	(cd $(@D); DESTDIR=$(PROTO_DIR) $(GMAKE) samples;)
+COMPONENT_PRE_BUILD_ACTION  += (mkdir -p $(PROTO_DIR)/var/lib/asterisk/phoneprov)
+COMPONENT_POST_BUILD_ACTION += (cd $(@D); DESTDIR=$(PROTO_DIR) $(GMAKE) samples;)
 
 build:          $(BUILD_32_and_64)
 

components/asterisk/asterisk.p5m

 
 set name=pkg.fmri value=pkg:/servers/telephony/asterisk@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
 set name=pkg.summary value="Asterisk Telephone PBX"
-#set name=info.classification value="org.opensolaris.category.2008:
+set name=info.classification \ 
+        value="org.opensolaris.category.2008:Web Services/Communications"
 set name=info.upstream_url value="http://www.asterisk.org"
 set name=info.source_url value=$(COMPONENT_ARCHIVE_URL)
 set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
 
 dir  path=etc
 dir  path=etc/asterisk
+file path=etc/asterisk/adsi.conf
+file path=etc/asterisk/agents.conf
+file path=etc/asterisk/ais.conf
+file path=etc/asterisk/alarmreceiver.conf
+file path=etc/asterisk/alsa.conf
+file path=etc/asterisk/amd.conf
+file path=etc/asterisk/app_mysql.conf
+file path=etc/asterisk/asterisk.adsi
+file path=etc/asterisk/asterisk.conf
+file path=etc/asterisk/calendar.conf
+file path=etc/asterisk/ccss.conf
+file path=etc/asterisk/cdr.conf
+file path=etc/asterisk/cdr_adaptive_odbc.conf
+file path=etc/asterisk/cdr_custom.conf
+file path=etc/asterisk/cdr_manager.conf
+file path=etc/asterisk/cdr_mysql.conf
+file path=etc/asterisk/cdr_odbc.conf
+file path=etc/asterisk/cdr_pgsql.conf
+file path=etc/asterisk/cdr_sqlite3_custom.conf
+file path=etc/asterisk/cdr_syslog.conf
+file path=etc/asterisk/cdr_tds.conf
+file path=etc/asterisk/cel.conf
+file path=etc/asterisk/cel_custom.conf
+file path=etc/asterisk/cel_odbc.conf
+file path=etc/asterisk/cel_pgsql.conf
+file path=etc/asterisk/cel_sqlite3_custom.conf
+file path=etc/asterisk/cel_tds.conf
+file path=etc/asterisk/chan_dahdi.conf
+file path=etc/asterisk/chan_mobile.conf
+file path=etc/asterisk/chan_ooh323.conf
+file path=etc/asterisk/cli.conf
+file path=etc/asterisk/cli_aliases.conf
+file path=etc/asterisk/cli_permissions.conf
+file path=etc/asterisk/codecs.conf
+file path=etc/asterisk/console.conf
+file path=etc/asterisk/dbsep.conf
+file path=etc/asterisk/dnsmgr.conf
+file path=etc/asterisk/dsp.conf
+file path=etc/asterisk/dundi.conf
+file path=etc/asterisk/enum.conf
+file path=etc/asterisk/extconfig.conf
+file path=etc/asterisk/extensions.ael
+file path=etc/asterisk/extensions.conf
+file path=etc/asterisk/extensions.lua
+file path=etc/asterisk/extensions_minivm.conf
+file path=etc/asterisk/features.conf
+file path=etc/asterisk/festival.conf
+file path=etc/asterisk/followme.conf
+file path=etc/asterisk/func_odbc.conf
+file path=etc/asterisk/gtalk.conf
+file path=etc/asterisk/h323.conf
+file path=etc/asterisk/http.conf
+file path=etc/asterisk/iax.conf
+file path=etc/asterisk/iaxprov.conf
+file path=etc/asterisk/indications.conf
+file path=etc/asterisk/jabber.conf
+file path=etc/asterisk/jingle.conf
+file path=etc/asterisk/logger.conf
+file path=etc/asterisk/manager.conf
+file path=etc/asterisk/meetme.conf
+file path=etc/asterisk/mgcp.conf
+file path=etc/asterisk/minivm.conf
+file path=etc/asterisk/misdn.conf
+file path=etc/asterisk/modules.conf
+file path=etc/asterisk/musiconhold.conf
+file path=etc/asterisk/muted.conf
+file path=etc/asterisk/osp.conf
+file path=etc/asterisk/oss.conf
+file path=etc/asterisk/phone.conf
+file path=etc/asterisk/phoneprov.conf
+file path=etc/asterisk/queuerules.conf
+file path=etc/asterisk/queues.conf
+file path=etc/asterisk/res_config_mysql.conf
+file path=etc/asterisk/res_config_sqlite.conf
+file path=etc/asterisk/res_curl.conf
+file path=etc/asterisk/res_fax.conf
+file path=etc/asterisk/res_ldap.conf
+file path=etc/asterisk/res_odbc.conf
+file path=etc/asterisk/res_pgsql.conf
+file path=etc/asterisk/res_pktccops.conf
+file path=etc/asterisk/res_snmp.conf
+file path=etc/asterisk/res_stun_monitor.conf
+file path=etc/asterisk/rpt.conf
+file path=etc/asterisk/rtp.conf
+file path=etc/asterisk/say.conf
+file path=etc/asterisk/sip.conf
+file path=etc/asterisk/sip_notify.conf
+file path=etc/asterisk/skinny.conf
+file path=etc/asterisk/sla.conf
+file path=etc/asterisk/smdi.conf
+file path=etc/asterisk/telcordia-1.adsi
+file path=etc/asterisk/udptl.conf
+file path=etc/asterisk/unistim.conf
+file path=etc/asterisk/usbradio.conf
+file path=etc/asterisk/users.conf
+file path=etc/asterisk/voicemail.conf
+file path=etc/asterisk/vpb.conf
+dir  path=mangled
+dir  path=mangled/usr
+dir  path=mangled/usr/share
+dir  path=mangled/usr/share/man
+dir  path=mangled/usr/share/man/man8
+file path=mangled/usr/share/man/man8/asterisk.8
+file path=mangled/usr/share/man/man8/astgenkey.8
+file path=mangled/usr/share/man/man8/autosupport.8
+file path=mangled/usr/share/man/man8/safe_asterisk.8
 dir  path=usr
 dir  path=usr/include
 dir  path=usr/include/asterisk
 file path=var/lib/asterisk/moh/manolo_camp-morning_coffee.wav
 file path=var/lib/asterisk/moh/reno_project-system.wav
 dir  path=var/lib/asterisk/phoneprov
+file path=var/lib/asterisk/phoneprov/000000000000-directory.xml
+file path=var/lib/asterisk/phoneprov/000000000000-phone.cfg
+file path=var/lib/asterisk/phoneprov/000000000000.cfg
+file path=var/lib/asterisk/phoneprov/polycom.xml
+file path=var/lib/asterisk/phoneprov/polycom_line.xml
+file path=var/lib/asterisk/phoneprov/snom-mac.xml
 dir  path=var/lib/asterisk/sounds
 dir  path=var/lib/asterisk/sounds/en
 file path=var/lib/asterisk/sounds/en/.asterisk-core-sounds-en-gsm-1.4.21
 dir  path=var/spool/asterisk/system
 dir  path=var/spool/asterisk/tmp
 dir  path=var/spool/asterisk/voicemail
+dir  path=var/spool/asterisk/voicemail/default
+dir  path=var/spool/asterisk/voicemail/default/1234
+dir  path=var/spool/asterisk/voicemail/default/1234/INBOX