Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 130734
Collapse All | Expand All

(-)vicidial.ebuild.orig (-24 / +24 lines)
Lines 41-47 Link Here
41
41
42
src_unpack() {
42
src_unpack() {
43
	unpack ${A}
43
	unpack ${A}
44
	cd ${S}
44
	cd "${S}"
45
	sed -i -e "s:/home/cron:/usr/share/${PN}:g" *.pl *.at
45
	sed -i -e "s:/home/cron:/usr/share/${PN}:g" *.pl *.at
46
	sed -i -e "s:\\\/home\\\/cron:\\\/usr\\\/share\\\/${PN}:g" *.pl
46
	sed -i -e "s:\\\/home\\\/cron:\\\/usr\\\/share\\\/${PN}:g" *.pl
47
	sed -i -e "s:/usr/local/apache2/htdocs:/var/www/localhost/htdocs/astguiclient:g" */dbconnect.php
47
	sed -i -e "s:/usr/local/apache2/htdocs:/var/www/localhost/htdocs/astguiclient:g" */dbconnect.php
Lines 51-68 Link Here
51
	webapp_src_preinst
51
	webapp_src_preinst
52
52
53
	einfo "Installing main files"
53
	einfo "Installing main files"
54
	dodir ${MY_HTDOCSDIR}
54
	dodir "${MY_HTDOCSDIR}"
55
	cp -r agc ${D}${MY_HTDOCSDIR}/
55
	cp -Rf agc "${D}${MY_HTDOCSDIR}/"
56
	webapp_configfile ${MY_HTDOCSDIR}/agc/dbconnect.php
56
	webapp_configfile "${MY_HTDOCSDIR}"/agc/dbconnect.php
57
	cp -r VICIDIAL_web ${D}${MY_HTDOCSDIR}/vicidial
57
	cp -Rf VICIDIAL_web "${D}${MY_HTDOCSDIR}"/vicidial
58
	rm ${D}${MY_HTDOCSDIR}/vicidial/Copy*
58
	rm -f "${D}${MY_HTDOCSDIR}"/vicidial/Copy*
59
	webapp_configfile ${MY_HTDOCSDIR}/vicidial/dbconnect.php
59
	webapp_configfile "${MY_HTDOCSDIR}"/vicidial/dbconnect.php
60
	cp -r astguiclient_web ${D}${MY_HTDOCSDIR}/astguiclient
60
	cp -Rf astguiclient_web "${D}${MY_HTDOCSDIR}"/astguiclient
61
	webapp_configfile ${MY_HTDOCSDIR}/astguiclient/dbconnect.php
61
	webapp_configfile "${MY_HTDOCSDIR}"/astguiclient/dbconnect.php
62
62
63
	webapp_serverowned -R ${MY_HTDOCSDIR}/agc
63
	webapp_serverowned -R "${MY_HTDOCSDIR}"/agc
64
	webapp_serverowned -R ${MY_HTDOCSDIR}/vicidial
64
	webapp_serverowned -R "${MY_HTDOCSDIR}"/vicidial
65
	webapp_serverowned -R ${MY_HTDOCSDIR}/astguiclient
65
	webapp_serverowned -R "${MY_HTDOCSDIR}"/astguiclient
66
66
67
	exeinto /var/lib/asterisk/agi-bin
67
	exeinto /var/lib/asterisk/agi-bin
68
	doexe *.agi
68
	doexe *.agi
Lines 79-96 Link Here
79
	doexe *.pl
79
	doexe *.pl
80
	doexe *.at
80
	doexe *.at
81
	insinto /usr/share/${PN}
81
	insinto /usr/share/${PN}
82
	doins test_VICIDIAL_lead_file.txt phone_codes_GMT.txt ${FILESDIR}/${MY_PV}.sql.gz
82
	doins test_VICIDIAL_lead_file.txt phone_codes_GMT.txt "somewhereelse/${MY_PV}.sql.gz"
83
	gunzip ${D}/usr/share/${PN}/${MY_PV}.sql.gz
83
	gunzip "${D}/usr/share/${PN}/${MY_PV}.sql.gz"
84
84
85
	exeinto /etc/cron.hourly
85
	exeinto /etc/cron.hourly
86
	newexe ${FILESDIR}/cronhourly astguiclient
86
	newexe "${FILESDIR}/cronhourly" astguiclient
87
	exeinto /etc/cron.weekly
87
	exeinto /etc/cron.weekly
88
	newexe ${FILESDIR}/cronweekly astguiclient
88
	newexe "${FILESDIR}/cronweekly" astguiclient
89
89
90
	insinto /etc/asterisk
90
	insinto /etc/asterisk
91
	newins ${FILESDIR}/extensions.conf extensions.${PN}.conf
91
	newins "${FILESDIR}/extensions.conf" extensions.${PN}.conf
92
	newins ${FILESDIR}/meetme.conf meetme.${PN}.conf
92
	newins "${FILESDIR}/meetme.conf" meetme.${PN}.conf
93
	newins ${FILESDIR}/manager.conf manager.${PN}.conf
93
	newins "${FILESDIR}/manager.conf" manager.${PN}.conf
94
94
95
	dodoc docs/*.txt
95
	dodoc docs/*.txt
96
96
Lines 110-118 Link Here
110
		die "Passwords are not the same"
110
		die "Passwords are not the same"
111
	fi
111
	fi
112
	einfo "please type in your MySQL root password to create the database."
112
	einfo "please type in your MySQL root password to create the database."
113
	cat /usr/share/${PN}/${MY_PV}.sql | sed -e "s:CRONPWD:${pwd1}:g" > /tmp/${PF}.sql
113
	cat "${ROOT}/usr/share/${PN}/${MY_PV}.sql" | sed -e "s:CRONPWD:${pwd1}:g" > "${ROOT}/tmp/${PF}.sql"
114
	mysql -u root -p < /tmp/${PF}.sql
114
	mysql -u root -p < "${ROOT}/tmp/${PF}.sql"
115
	rm -r /tmp/${PF}.sql
115
	rm -Rf "${ROOT}/tmp/${PF}.sql"
116
	einfo "A temporary admin user has been set up with the username \"Admin\""
116
	einfo "A temporary admin user has been set up with the username \"Admin\""
117
	einfo "and the password \"test\". Please change this by visiting the"
117
	einfo "and the password \"test\". Please change this by visiting the"
118
	einfo "astguiclient administration page:"
118
	einfo "astguiclient administration page:"
Lines 124-130 Link Here
124
124
125
pkg_postinst() {
125
pkg_postinst() {
126
	einfo "To set up the MySQL database, run:"
126
	einfo "To set up the MySQL database, run:"
127
	einfo "\"emerge --config =net-misc/${PF}\""
127
	einfo "\"emerge --config =${CATEGORY}/${PF}\""
128
	einfo "Please make sure, however, that your MySQL database is running."
128
	einfo "Please make sure, however, that your MySQL database is running."
129
129
130
	ewarn "Please note that you must have a cron daemon running, such as"
130
	ewarn "Please note that you must have a cron daemon running, such as"

Return to bug 130734