Include freeswitch user/group | Fix pkglint errors
This commit is contained in:
parent
f87cdb02db
commit
b46ff15372
|
@ -17,7 +17,7 @@ LIBTOOL_OVERRIDE= libtool */libtool */*/libtool */*/*/libtool
|
|||
USE_LANGUAGES= c c++
|
||||
USE_TOOLS+= automake autoconf gmake perl pkg-config
|
||||
|
||||
BUILD_DEFS+= VARBASE
|
||||
BUILD_DEFS+= VARBASE FREESWITCH_CONFDIR FREESWITCH_DATADIR FREESWITCH_SHAREDIR
|
||||
|
||||
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
||||
CONFIGURE_ARGS+= --exec-prefix=${PREFIX}/bin
|
||||
|
@ -163,6 +163,23 @@ INSTALLATION_DIRS+= ${PREFIX}/freeswitch/modules
|
|||
INSTALLATION_DIRS+= ${PREFIX}/freeswitch/sounds
|
||||
INSTALLATION_DIRS+= ${PREFIX}/freeswitch/recordings
|
||||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
|
||||
FREESWITCH_USER?= freeswitch
|
||||
FREESWITCH_GROUP?= freeswitch
|
||||
PKG_GROUPS= ${FREESWITCH_GROUP}
|
||||
PKG_USERS= ${FREESWITCH_USER}:${FREESWITCH_GROUP}
|
||||
PKG_GECOS.${FREESWITCH_USER}= FreeSWITCH
|
||||
PKG_GROUPS_VARS= FREESWITCH_GROUP
|
||||
PKG_USERS_VARS= FREESWITCH_USER
|
||||
|
||||
FREESWITCH_CONFDIR?= ${PREFIX}/etc/freeswitch
|
||||
FREESWITCH_DATADIR?= ${PREFIX}/freeswitch
|
||||
FREESWITCH_SHAREDIR?= ${PREFIX}/share/freeswitch
|
||||
|
||||
PKG_SYSCONFSUBDIR= freeswitch
|
||||
PKG_SYSCONFDIR_PERMS= ${FREESWITCH_USER} ${FREESWITCH_GROUP} 0755
|
||||
|
||||
BUILDLINK_TRANSFORM+= rm:-Werror
|
||||
|
||||
post-install:
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
#
|
||||
. /etc/rc.subr
|
||||
name="freeswitch"
|
||||
rcvar=${name}_enable
|
||||
rcvar=${name}
|
||||
load_rc_config $name
|
||||
: ${freeswitch_enable="NO"}
|
||||
: ${freeswitch="NO"}
|
||||
: ${freeswitch_pidfile="${VARBASE}/run/freeswitch/freeswitch.pid"}
|
||||
start_cmd=${name}_start
|
||||
stop_cmd=${name}_stop
|
||||
|
|
Loading…
Reference in a new issue