diff options
author | flo <flo@FreeBSD.org> | 2010-12-29 20:47:09 +0800 |
---|---|---|
committer | flo <flo@FreeBSD.org> | 2010-12-29 20:47:09 +0800 |
commit | 20eaf5d7056f8f872f520eb29871c84b81ffbc57 (patch) | |
tree | a1fda1e7ae1978ec704567cdc623df5679219797 /net | |
parent | b2e30297b4f9ef30fc30ea1472ae0526e03e6a78 (diff) | |
download | freebsd-ports-graphics-20eaf5d7056f8f872f520eb29871c84b81ffbc57.tar.gz freebsd-ports-graphics-20eaf5d7056f8f872f520eb29871c84b81ffbc57.tar.zst freebsd-ports-graphics-20eaf5d7056f8f872f520eb29871c84b81ffbc57.zip |
- fix pkg-plist [1]
- enable dahdi on sparc64 [2]
- only use /var as localstatedir if we install to LOCALBASE
- fix harmless portlint warning
PR: 153507 [1]
Submitted by: Dan Lukes <dan@obluda.cz> [1]
fjoe [2]
Approved by: fjoe (mentor)
Diffstat (limited to 'net')
-rw-r--r-- | net/asterisk/Makefile | 16 | ||||
-rw-r--r-- | net/asterisk/files/patch-configure | 18 | ||||
-rw-r--r-- | net/asterisk/pkg-plist | 8 | ||||
-rw-r--r-- | net/asterisk10/Makefile | 16 | ||||
-rw-r--r-- | net/asterisk10/files/patch-configure | 18 | ||||
-rw-r--r-- | net/asterisk10/pkg-plist | 8 |
6 files changed, 58 insertions, 26 deletions
diff --git a/net/asterisk/Makefile b/net/asterisk/Makefile index 3b4a0542701..92fa3d13a75 100644 --- a/net/asterisk/Makefile +++ b/net/asterisk/Makefile @@ -7,6 +7,7 @@ PORTNAME= asterisk PORTVERSION= 1.8.1.1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \ http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ @@ -25,7 +26,7 @@ ONLY_FOR_ARCHS= i386 amd64 sparc64 GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/openh323" \ LDFLAGS="-L${LOCALBASE}/lib" -CONFIGURE_ARGS= --with-gsm=${LOCALBASE} --localstatedir=/var +CONFIGURE_ARGS= --with-gsm=${LOCALBASE} CPPFLAGS= -I${LOCALBASE}/include -I${LOCALBASE}/include/openh323 USE_GMAKE= yes USE_GNOME= libxml2 @@ -67,11 +68,17 @@ GROUPS= ${ASTERISK_GROUP} dahdi .include <bsd.port.pre.mk> -.if ${ARCH} == "i386" || ${ARCH} == "amd64" +.if ${PREFIX} == ${LOCALBASE} +VARDIR=/var +.else +VARDIR=${PREFIX}/var +.endif + +.if ${ARCH} == "i386" || ${ARCH} == "amd64" || ${ARCH} == "sparc64" OPTIONS+= DAHDI "Enable DAHDI support" on .if defined(WITH_IODBC) && defined(WITH_UODBC) -IGNORE= please select only one of iodbc or unixODBC +IGNORE= please select only one of iodbc or unixODBC .endif # Include this since we have altered OPTIONS. @@ -81,6 +88,7 @@ IGNORE= please select only one of iodbc or unixODBC SUB_LIST+= ASTERISK_USER=${ASTERISK_USER} PLIST_SUB+= ASTERISK_USER=${ASTERISK_USER} PLIST_SUB+= ASTERISK_GROUP=${ASTERISK_GROUP} +PLIST_SUB+= VARDIR=${VARDIR} .if !defined(WITH_H323) PLIST_SUB+= WITH_H323="@comment " @@ -255,6 +263,6 @@ post-patch: ${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g' ${WRKSRC}/configs/musiconhold.conf.sample post-install: - @${CHOWN} -R ${ASTERISK_USER}:${ASTERISK_GROUP} /var/db/asterisk /var/log/asterisk /var/spool/asterisk + @${CHOWN} -R ${ASTERISK_USER}:${ASTERISK_GROUP} ${VARDIR}/db/asterisk ${VARDIR}/log/asterisk ${VARDIR}/spool/asterisk .include <bsd.port.post.mk> diff --git a/net/asterisk/files/patch-configure b/net/asterisk/files/patch-configure index 0cc2a352b5a..0e57fa33bdf 100644 --- a/net/asterisk/files/patch-configure +++ b/net/asterisk/files/patch-configure @@ -1,6 +1,14 @@ ---- configure.orig 2010-10-07 22:58:47.000000000 +0200 -+++ configure 2010-11-06 15:54:49.000000000 +0100 -@@ -4670,9 +4670,9 @@ +--- configure.orig 2010-11-09 21:33:05.000000000 +0100 ++++ configure 2010-12-29 09:00:30.000000000 +0100 +@@ -600,7 +600,6 @@ + ac_default_prefix=/usr/local + ac_default_prefix=/usr/local + ac_default_prefix=/usr/local +-ac_default_prefix=/usr + ac_header_list= + ac_subst_vars='LTLIBOBJS + PBX_SYSLOG +@@ -4670,9 +4669,9 @@ astheaderdir='${includedir}/asterisk' astlibdir='${libdir}/asterisk' astmandir='${mandir}' @@ -12,7 +20,7 @@ astkeydir='${astvarlibdir}' astspooldir='${localstatedir}/spool/asterisk' astlogdir='${localstatedir}/log/asterisk' -@@ -4694,9 +4694,6 @@ +@@ -4694,9 +4693,6 @@ case "${host_os}" in freebsd*) @@ -22,7 +30,7 @@ ;; openbsd*) -@@ -25058,7 +25055,7 @@ +@@ -25152,7 +25148,7 @@ fi diff --git a/net/asterisk/pkg-plist b/net/asterisk/pkg-plist index 834c304b91b..752a6fe90be 100644 --- a/net/asterisk/pkg-plist +++ b/net/asterisk/pkg-plist @@ -541,9 +541,9 @@ lib/asterisk/modules/cdr_syslog.so lib/asterisk/modules/cel_custom.so lib/asterisk/modules/cel_manager.so %%WITH_ODBC%%lib/asterisk/modules/cel_odbc.so -lib/asterisk/modules/cel_pgsql.so -lib/asterisk/modules/cel_radius.so -lib/asterisk/modules/cel_sqlite3_custom.so +%%WITH_POSTGRES%%lib/asterisk/modules/cel_pgsql.so +%%WITH_RADIUS%%lib/asterisk/modules/cel_radius.so +%%WITH_SQLITE%%lib/asterisk/modules/cel_sqlite3_custom.so %%WITH_FREETDS%%lib/asterisk/modules/cel_tds.so lib/asterisk/modules/chan_agent.so %%WITH_JABBER%%lib/asterisk/modules/chan_gtalk.so @@ -1167,7 +1167,7 @@ share/asterisk/static-http/mantest.html @exec mkdir -p %D/share/asterisk/sounds/es @exec mkdir -p %D/share/asterisk/sounds/fr @exec mkdir -p %D/share/asterisk/sounds/en_AU -@cwd /var +@cwd %%VARDIR%% spool/asterisk/voicemail/default/1234/en/busy.gsm spool/asterisk/voicemail/default/1234/en/unavail.gsm @exec mkdir -p %D/log/asterisk/cdr-csv diff --git a/net/asterisk10/Makefile b/net/asterisk10/Makefile index 3b4a0542701..92fa3d13a75 100644 --- a/net/asterisk10/Makefile +++ b/net/asterisk10/Makefile @@ -7,6 +7,7 @@ PORTNAME= asterisk PORTVERSION= 1.8.1.1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \ http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ @@ -25,7 +26,7 @@ ONLY_FOR_ARCHS= i386 amd64 sparc64 GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/openh323" \ LDFLAGS="-L${LOCALBASE}/lib" -CONFIGURE_ARGS= --with-gsm=${LOCALBASE} --localstatedir=/var +CONFIGURE_ARGS= --with-gsm=${LOCALBASE} CPPFLAGS= -I${LOCALBASE}/include -I${LOCALBASE}/include/openh323 USE_GMAKE= yes USE_GNOME= libxml2 @@ -67,11 +68,17 @@ GROUPS= ${ASTERISK_GROUP} dahdi .include <bsd.port.pre.mk> -.if ${ARCH} == "i386" || ${ARCH} == "amd64" +.if ${PREFIX} == ${LOCALBASE} +VARDIR=/var +.else +VARDIR=${PREFIX}/var +.endif + +.if ${ARCH} == "i386" || ${ARCH} == "amd64" || ${ARCH} == "sparc64" OPTIONS+= DAHDI "Enable DAHDI support" on .if defined(WITH_IODBC) && defined(WITH_UODBC) -IGNORE= please select only one of iodbc or unixODBC +IGNORE= please select only one of iodbc or unixODBC .endif # Include this since we have altered OPTIONS. @@ -81,6 +88,7 @@ IGNORE= please select only one of iodbc or unixODBC SUB_LIST+= ASTERISK_USER=${ASTERISK_USER} PLIST_SUB+= ASTERISK_USER=${ASTERISK_USER} PLIST_SUB+= ASTERISK_GROUP=${ASTERISK_GROUP} +PLIST_SUB+= VARDIR=${VARDIR} .if !defined(WITH_H323) PLIST_SUB+= WITH_H323="@comment " @@ -255,6 +263,6 @@ post-patch: ${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g' ${WRKSRC}/configs/musiconhold.conf.sample post-install: - @${CHOWN} -R ${ASTERISK_USER}:${ASTERISK_GROUP} /var/db/asterisk /var/log/asterisk /var/spool/asterisk + @${CHOWN} -R ${ASTERISK_USER}:${ASTERISK_GROUP} ${VARDIR}/db/asterisk ${VARDIR}/log/asterisk ${VARDIR}/spool/asterisk .include <bsd.port.post.mk> diff --git a/net/asterisk10/files/patch-configure b/net/asterisk10/files/patch-configure index 0cc2a352b5a..0e57fa33bdf 100644 --- a/net/asterisk10/files/patch-configure +++ b/net/asterisk10/files/patch-configure @@ -1,6 +1,14 @@ ---- configure.orig 2010-10-07 22:58:47.000000000 +0200 -+++ configure 2010-11-06 15:54:49.000000000 +0100 -@@ -4670,9 +4670,9 @@ +--- configure.orig 2010-11-09 21:33:05.000000000 +0100 ++++ configure 2010-12-29 09:00:30.000000000 +0100 +@@ -600,7 +600,6 @@ + ac_default_prefix=/usr/local + ac_default_prefix=/usr/local + ac_default_prefix=/usr/local +-ac_default_prefix=/usr + ac_header_list= + ac_subst_vars='LTLIBOBJS + PBX_SYSLOG +@@ -4670,9 +4669,9 @@ astheaderdir='${includedir}/asterisk' astlibdir='${libdir}/asterisk' astmandir='${mandir}' @@ -12,7 +20,7 @@ astkeydir='${astvarlibdir}' astspooldir='${localstatedir}/spool/asterisk' astlogdir='${localstatedir}/log/asterisk' -@@ -4694,9 +4694,6 @@ +@@ -4694,9 +4693,6 @@ case "${host_os}" in freebsd*) @@ -22,7 +30,7 @@ ;; openbsd*) -@@ -25058,7 +25055,7 @@ +@@ -25152,7 +25148,7 @@ fi diff --git a/net/asterisk10/pkg-plist b/net/asterisk10/pkg-plist index 834c304b91b..752a6fe90be 100644 --- a/net/asterisk10/pkg-plist +++ b/net/asterisk10/pkg-plist @@ -541,9 +541,9 @@ lib/asterisk/modules/cdr_syslog.so lib/asterisk/modules/cel_custom.so lib/asterisk/modules/cel_manager.so %%WITH_ODBC%%lib/asterisk/modules/cel_odbc.so -lib/asterisk/modules/cel_pgsql.so -lib/asterisk/modules/cel_radius.so -lib/asterisk/modules/cel_sqlite3_custom.so +%%WITH_POSTGRES%%lib/asterisk/modules/cel_pgsql.so +%%WITH_RADIUS%%lib/asterisk/modules/cel_radius.so +%%WITH_SQLITE%%lib/asterisk/modules/cel_sqlite3_custom.so %%WITH_FREETDS%%lib/asterisk/modules/cel_tds.so lib/asterisk/modules/chan_agent.so %%WITH_JABBER%%lib/asterisk/modules/chan_gtalk.so @@ -1167,7 +1167,7 @@ share/asterisk/static-http/mantest.html @exec mkdir -p %D/share/asterisk/sounds/es @exec mkdir -p %D/share/asterisk/sounds/fr @exec mkdir -p %D/share/asterisk/sounds/en_AU -@cwd /var +@cwd %%VARDIR%% spool/asterisk/voicemail/default/1234/en/busy.gsm spool/asterisk/voicemail/default/1234/en/unavail.gsm @exec mkdir -p %D/log/asterisk/cdr-csv |