View previous topic :: View next topic |
Author |
Message |
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1555 Location: Adelaide/Australia
|
Posted: Thu Mar 17, 2011 11:56 pm Post subject: Building Zoneminder on Gentoo |
|
|
Ebuild www-misc/zoneminder-1.24.2 requires a tweak to build.
Code: | export CXXFLAGS="D__STDC_CONSTANT_MACROS"
emerge zoneminder
unset CXXFLAGS
|
_________________ ...Lyall |
|
Back to top |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Sun Mar 20, 2011 11:13 am Post subject: |
|
|
I think this should be something the ebuild should handle for us...
Let me see if I can come up with an idea that does it. _________________ Please stand by - The mailer daemon is busy burning your messages in hell... |
|
Back to top |
|
|
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1555 Location: Adelaide/Australia
|
Posted: Mon Mar 21, 2011 9:36 pm Post subject: |
|
|
Noooooo - somebody, rather than simply fixing the ebuild, has decided to schedule remove the ebuild from portage!
Aaarrrrgggg!
I was only trying to help other people build this package, not have it removed - it's an awesome Webcam/IP camera monitoring tool, great for home security. _________________ ...Lyall |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
|
Back to top |
|
|
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1555 Location: Adelaide/Australia
|
Posted: Tue Mar 22, 2011 8:04 am Post subject: |
|
|
All we need to do is fix the ebuild - I am not an expert in this area.
The app, whilst not having been 'maintained', works perfectly well.
I can understand some app that doesn't work being nuked but a perfectly working one is not doing gentoo a service.
Just my thoughts. _________________ ...Lyall |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Tue Mar 22, 2011 9:25 am Post subject: |
|
|
yeah no, fair enough, i do get that
just sayin', it doesn't build, hasn't built for a good year or better, and has no maintainer
at what point do you yoink it out of portage, yanno? This is going to be a neverending cat and mouse game. The toolchain is going to keep moving forward, meanwhile, this isn't getting any updates, hasn't been touched by the author since June 2009, it looks like it's not only abandoned by the local maintainer, but by the upstream maintainer as well. New things are going to keep being added, that are going to continue breaking this package, lord only knows what vulns exist in this package now - and neither the author nor maintainers are around to take care of it. It's an annoying situation, but *something* has to be done - cant be hard-masked for ever, cant stay in portage unmaintainend forever.
by the by, I just synced and:
Code: |
* www-misc/zoneminder
Available versions: [M](~)1.23.3[1] [M](~)1.24.2 [M](~)1.24.2[1] {debug ffmpeg}
Homepage: http://www.zoneminder.com/
Description: ZoneMinder allows you to capture, analyse, record and monitor any cameras attached to your system.
|
it just looks to be hard-masked, not removed from portage (yet!) - nothing package.unmask can't sort
Code: |
# Samuli Suominen <ssuominen@gentoo.org> (20 Mar 2011)
# Masked for QA
# Fails to build in various ways, see tracker bug 359605.
# Removal in 30 days
www-misc/zoneminder
media-plugins/mythzoneminder
|
Like I said, it needs a maintainer. It can't stay hard-masked in portage forever, and as long as it doesn't build, hasnt built for ages, the prospects look fairly grim. Basically, snag the ebuild while you can, because ol' gal is running out of time.
(NB: am not a dev, don't know the formal policy there, but I would err on the side of caution)
For what it's worth, here's an updated ebuild that should do the trick:
Code: |
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-misc/zoneminder/zoneminder-1.24.2.ebuild,v 1.4 2011/02/27 20:09:33 ssuominen Exp $
inherit eutils autotools depend.php depend.apache multilib flag-o-matic
MY_PV=${PV/_/-}
MY_PN="ZoneMinder"
PATCH_PV="1.24.2"
DESCRIPTION="ZoneMinder allows you to capture, analyse, record and monitor any cameras attached to your system."
HOMEPAGE="http://www.zoneminder.com/"
SRC_URI="http://www.zoneminder.com/downloads/${MY_PN}-${MY_PV}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug ffmpeg"
#IUSE="debug ffmpeg mmap"
SLOT="0"
DEPEND="app-admin/sudo
dev-libs/libpcre
virtual/jpeg
net-libs/gnutls
>=dev-lang/perl-5.6.0
virtual/perl-Archive-Tar
dev-perl/Archive-Zip
dev-perl/DateManip
dev-perl/DBD-mysql
dev-perl/DBI
dev-perl/Device-SerialPort
dev-perl/libwww-perl
dev-perl/MIME-Lite
dev-perl/MIME-tools
dev-perl/PHP-Serialization
virtual/perl-Getopt-Long
virtual/perl-libnet
virtual/perl-Module-Load
virtual/perl-Sys-Syslog
virtual/perl-Time-HiRes"
RDEPEND="dev-perl/DBD-mysql
ffmpeg? ( >=media-video/ffmpeg-0.5-r1 )
media-libs/netpbm"
# we cannot use need_httpd_cgi here, since we need to setup permissions for the
# webserver in global scope (/etc/zm.conf etc), so we hardcode apache here.
need_apache
need_php_httpd
S=${WORKDIR}/${MY_PN}-${MY_PV}
pkg_setup() {
require_php_with_use mysql sockets apache2
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PATCH_PV}/Makefile.am.patch
epatch "${FILESDIR}"/${PATCH_PV}/zm_create.sql.in.patch
epatch "${FILESDIR}"/${PATCH_PV}/zm_remote_camera_http.patch
epatch "${FILESDIR}"/${PATCH_PV}/db_upgrade_script_location.patch
epatch "${FILESDIR}"/${PATCH_PV}/zm_jpeg.patch
epatch "${FILESDIR}"/${PATCH_PV}/zm_build_fix.patch
eautoreconf
}
src_compile() {
local myconf
# To enable mmap support we need a dependancy of Sys::Mmap
# It installs fine via g-cpan, but there's no ebuild currently in portage.
# if use mmap; then
# myconf="${myconf} --enable-mmap=yes"
# else
# myconf="${myconf} --enable-mmap=no"
# fi
append-flags "-D__STDC_CONSTANT_MACROS"
if use debug; then
myconf="${myconf} --enable-debug=yes --enable-crashtrace=yes"
else
myconf="${myconf} --enable-debug=no --enable-crashtrace=no"
fi
econf --with-libarch=$(get_libdir) \
--with-mysql=/usr \
$(use_with ffmpeg) \
--with-webdir="${ROOT}var/www/zoneminder/htdocs" \
--with-cgidir="${ROOT}var/www/zoneminder/cgi-bin" \
--with-webuser=apache \
--with-webgroup=apache \
${myconf}
einfo "${PN} does not parallel build... using forcing make -j1..."
emake -j1 || die "emake failed"
}
src_install() {
keepdir /var/run/zm
emake -j1 DESTDIR="${D}" install || die "emake install failed"
fperms 0640 /etc/zm.conf
keepdir /var/log/${PN}
fowners apache:apache /var/log/${PN}
fowners apache:apache /var/run/zm
newinitd "${FILESDIR}"/init.d zoneminder
newconfd "${FILESDIR}"/conf.d zoneminder
dodoc AUTHORS ChangeLog INSTALL NEWS README TODO
insinto /usr/share/${PN}/db
doins db/zm_u* db/zm_create.sql
insinto /etc/apache2/vhosts.d
doins "${FILESDIR}"/10_zoneminder.conf
for DIR in events images sound; do
dodir "${ROOT}"/var/www/zoneminder/htdocs/${DIR}
done
}
pkg_postinst() {
elog ""
elog "0. If this is a new installation, you will need to create a MySQL database"
elog " for ${PN} to use. (see http://www.gentoo.org/doc/en/mysql-howto.xml)."
elog " Once you completed that you should execute the following:"
elog ""
elog " cd /usr/share/${PN}"
elog " mysql -u <my_database_user> -p<my_database_pass> <my_zoneminder_db> < db/zm_create.sql"
elog ""
elog "1. Set your database settings in /etc/zm.conf"
elog ""
elog "2. Start the ${PN} daemon:"
elog ""
elog " /etc/init.d/${PN} start"
elog ""
elog "3. Finally point your browser to http://localhost/${PN}"
elog ""
elog ""
elog "If you are upgrading, you will need to run the zmupdate.pl script:"
elog ""
elog " /usr/bin/zmupdate.pl version=<from version> [--user=<my_database_user> --pass=<my_database_pass>]"
elog ""
}
|
Hopefully that's at least a consolation prize? Or something?
NOTE: for me, this successfully compiled. It failed to install, because I didn't want it to install; I commented out the sections that would have pulled in apache/php, as this is my desktop and I'd rather not spend all night unmerging deps, so when it tried to chown things to apache:apache, it obviously failed, as this user/group do not exist on my system. I of course uncommented those sections above so that you can copy and paste.
There were two key pieces to get this to work.
First, on the inherit line at the top, you have to add
to include that eclass, or else the following line will just sorta be ignored, and it'll still fail to build
Code: |
append-flags "-D__STDC_CONSTANT_MACROS"
|
_________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
|
Back to top |
|
|
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1555 Location: Adelaide/Australia
|
Posted: Tue Mar 22, 2011 8:37 pm Post subject: |
|
|
Better go searching around for other bugs against the same package...
https://bugs.gentoo.org/show_bug.cgi?id=359605
This is the one that results in removal... :-/ _________________ ...Lyall |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Tue Mar 22, 2011 8:52 pm Post subject: |
|
|
yeah, i found that one
posted to the other bug because the other bug was w.r.t. the CXXFLAGS change.
by all means plead the case (e.g. "hey, not yet, an updated ebuild has been provided!"), I have zero attachment to or involvement with any of the development processes. I trawl the forums for spammers and flamewars, that's about it.
Hmm..that ebuild still needs to be tidied up a bit.
Mainly this, which is just wrong
Code: |
for DIR in events images sound; do
dodir "${ROOT}"/var/www/zoneminder/htdocs/${DIR}
done
|
never dodir from ${ROOT} - such is a crude hack (albeit a functional one). This really needs to go like so: http://www.gentoo.org/proj/en/webapps/webapp-eclass.xml
Actually otherwise I suppose the ebuild is fine. I bring this up because anything we can do to get the ebuild to be syntactically correct would only improve its chances of not being dropped (even if by a small margin).
If upstream said they/he/she still intended to maintain the software, that would help as well. But the big thing, needs a maintainer, OR, someone to add it to their overlay.
NB: did the ebuild i posted/attachedtobug work for you? like i said, I'm unable to test as I don't have apache here. Time permitting I'll see if I can fix up that screwy dodir block above, but no promises there. _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1555 Location: Adelaide/Australia
|
Posted: Tue Mar 22, 2011 9:11 pm Post subject: |
|
|
I have never done an ebuild that has made it to the tree.
I might have a crack at updating it and finding out how to post updates/new ebuilds today. _________________ ...Lyall |
|
Back to top |
|
|
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1555 Location: Adelaide/Australia
|
Posted: Tue Mar 22, 2011 10:20 pm Post subject: |
|
|
A revised ebuild has been posted to the bug, plus a link to that bug has been added to two other bugs.
In particular, the ebuild can be found in https://bugs.gentoo.org/show_bug.cgi?id=359605
Bug https://bugs.gentoo.org/show_bug.cgi?id=357029 has been updated to reference the above bug
The way I see it, this should close all bugs against zone minder, as they are all basically the same 2 areas.
- parallel build - zoneminder wont build with more than -j1
- the __STDC_CONSTANT_MACROS causing compile failures
A style change has also been included.
- usage of ${ROOT} in the install area
_________________ ...Lyall |
|
Back to top |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Wed Mar 23, 2011 9:45 am Post subject: |
|
|
Found a little ZoneMinder Problem with 2.6.38 kernel-headers:
Code: | checking linux/videodev.h presence... no
checking for linux/videodev.h... no
configure: error: zm requires Video4Linux to be installed |
I guess ZoneMinder is pretty dead - but I'd be happy if I am wrong. _________________ Please stand by - The mailer daemon is busy burning your messages in hell...
Last edited by ToeiRei on Wed Mar 23, 2011 10:33 am; edited 1 time in total |
|
Back to top |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Wed Mar 23, 2011 10:16 am Post subject: |
|
|
I just checked out the svn version of ZoneMinder of their repository. Looks like there are a few fixes. Last checkins show:
Quote: | ------------------------------------------------------------------------
r3310 | stan | 2011-03-02 13:35:17 +0100 (Wed, 02 Mar 2011) | 2 lines
Auto-updated.
------------------------------------------------------------------------
r3309 | stan | 2011-03-02 13:34:58 +0100 (Wed, 02 Mar 2011) | 2 lines
Added Spanish translation
------------------------------------------------------------------------
r3308 | stan | 2011-03-02 13:23:10 +0100 (Wed, 02 Mar 2011) | 2 lines
Allow FPS reporting to be disabled by setting valure to zero
------------------------------------------------------------------------
r3307 | stan | 2011-03-02 13:04:52 +0100 (Wed, 02 Mar 2011) | 2 lines
Fixed bug to do with V4L versions and monitor settings
------------------------------------------------------------------------
|
So the project isn't dead! _________________ Please stand by - The mailer daemon is busy burning your messages in hell... |
|
Back to top |
|
|
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1555 Location: Adelaide/Australia
|
Posted: Wed Mar 23, 2011 11:28 am Post subject: |
|
|
Well, the issue with the 2.6.38 kernel headers is not a problem at this point, the linux-headers-2.6.38 are not even in portage.
I will cross that bridge, when they arrive
I may also have a look at applying those 8 lines of patches, if someone thinks they are important enough. _________________ ...Lyall |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Wed Mar 23, 2011 11:39 am Post subject: |
|
|
lyallp wrote: | Well, the issue with the 2.6.38 kernel headers is not a problem at this point, the linux-headers-2.6.38 are not even in portage.
I will cross that bridge, when they arrive
I may also have a look at applying those 8 lines of patches, if someone thinks they are important enough. |
They are already in ~arch since almost week ago. |
|
Back to top |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Wed Mar 23, 2011 11:43 am Post subject: |
|
|
To make it more interesting, I sneaked around in the ZM forums. There is a preview release of the next release around: 1.24.3
The Tarball ist hosted on www2 instead of www - and you need to remove the patches from the ebuild and use g-cpan to build sys::mmap.
They seem to have fixed a lot - sadly it didn't work in our sandbox due to an access violation. But so far things are working. _________________ Please stand by - The mailer daemon is busy burning your messages in hell... |
|
Back to top |
|
|
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1555 Location: Adelaide/Australia
|
Posted: Wed Mar 23, 2011 11:47 am Post subject: |
|
|
linux-headers : doh!
Still, stopping zoneminder from being deleted is the first step, addressing 2.6.38 and the new release can follow.
_________________ ...Lyall |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Wed Mar 23, 2011 5:25 pm Post subject: |
|
|
you will likely have better luck getting it added to an overlay than getting it kept in portage _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1555 Location: Adelaide/Australia
|
Posted: Wed Mar 23, 2011 10:53 pm Post subject: |
|
|
I have found http://overlays.gentoo.org/ and the 'security' overlay appears to be the most appropriate but that doesn't seem to be any more active than zoneminder itself. _________________ ...Lyall |
|
Back to top |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Thu Mar 24, 2011 4:29 pm Post subject: |
|
|
Worst case is me providing an overlay.
Update:
Okay folks - if needed, I got my group's repository opened so we can still offer Zoneminder
just add "http://www.stargazer.at/layman.txt" to the overlays in the layman config.
Patches/Ebuilds should go to portage AT same domain as URL above. Bugtracker is about to be done. _________________ Please stand by - The mailer daemon is busy burning your messages in hell... |
|
Back to top |
|
|
Raphux n00b
Joined: 11 Sep 2004 Posts: 41 Location: Paris
|
Posted: Mon May 16, 2011 10:24 pm Post subject: |
|
|
ZoneMinder 1.24.3 has just been released on 16/05/2011:
- Announcement;
- Release changeLog;
- Download Page.
The changelog shows a bunch of new features and many fix.
Note from the release : Quote: | Long delayed point release. Brought up-to-date to work with new versions of ffmpeg etc. A number of new features are included and several important bugfixes. A new contributed iPhone skin is also included. |
|
|
Back to top |
|
|
Raphux n00b
Joined: 11 Sep 2004 Posts: 41 Location: Paris
|
Posted: Mon May 16, 2011 11:51 pm Post subject: |
|
|
I tried to build it : it compiles smoothly but it fails at the install phase :
Code: | […]
make[2]: Entering directory `/var/tmp/portage/www-misc/zoneminder-1.24.3/work/ZoneMinder-1.24.3'
test -z "/etc" || /bin/mkdir -p "/var/tmp/portage/www-misc/zoneminder-1.24.3/image//etc"
/usr/bin/install -c -m 644 zm.conf '/var/tmp/portage/www-misc/zoneminder-1.24.3/image//etc'
make install-data-hook
make[3]: Entering directory `/var/tmp/portage/www-misc/zoneminder-1.24.3/work/ZoneMinder-1.24.3'
( cd /var/tmp/portage/www-misc/zoneminder-1.24.3/image//etc; chown apache:apache zm.conf; chmod 600 zm.conf )
( if ! test -e /var/run/zm; then mkdir -p /var/run/zm; fi; chown apache:apache /var/run/zm; chmod u+w /var/run/zm )
ACCESS DENIED mkdir: /var/run/zm
mkdir: cannot create directory `/var/run/zm': Permission denied
chown: cannot access `/var/run/zm': No such file or directory
chmod: cannot access `/var/run/zm': No such file or directory
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.24.3/work/ZoneMinder-1.24.3'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.24.3/work/ZoneMinder-1.24.3'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.24.3/work/ZoneMinder-1.24.3'
make: *** [install-recursive] Error 1
emake failed
* ERROR: www-misc/zoneminder-1.24.3 failed (install phase):
* emake install failed
*
* Call stack:
* ebuild.sh, line 56: Called src_install
* environment, line 3804: Called die
* The specific snippet of code:
* emake -j1 DESTDIR="${D}" install || die "emake install failed";
*
* If you need support, post the output of 'emerge --info =www-misc/zoneminder-1.24.3',
* the complete build log and the output of 'emerge -pqv =www-misc/zoneminder-1.24.3'.
* This ebuild is from an overlay: '/usr/local/portage/'
* The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.24.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.24.3/temp/environment'.
* S: '/var/tmp/portage/www-misc/zoneminder-1.24.3/work/ZoneMinder-1.24.3'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-8926.log"
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line
F: mkdir
S: deny
P: zm
A: /var/run/zm
R: /var/run/zm
C: mkdir -p /var/run/zm
--------------------------------------------------------------------------------
>>> Failed to emerge www-misc/zoneminder-1.24.3, Log file:
>>> '/var/tmp/portage/www-misc/zoneminder-1.24.3/temp/build.log'
* Messages for package www-misc/zoneminder-1.24.3:
* ERROR: www-misc/zoneminder-1.24.3 failed (install phase):
* emake install failed
*
* Call stack:
* ebuild.sh, line 56: Called src_install
* environment, line 3804: Called die
* The specific snippet of code:
* emake -j1 DESTDIR="${D}" install || die "emake install failed";
*
* If you need support, post the output of 'emerge --info =www-misc/zoneminder-1.24.3',
* the complete build log and the output of 'emerge -pqv =www-misc/zoneminder-1.24.3'.
* This ebuild is from an overlay: '/usr/local/portage/'
* The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.24.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.24.3/temp/environment'.
* S: '/var/tmp/portage/www-misc/zoneminder-1.24.3/work/ZoneMinder-1.24.3'
|
Here is the ebuild I used :
Code: |
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-misc/zoneminder/zoneminder-1.24.2.ebuild,v 1.4 2011/02/27 20:09:33 ssuominen Exp $
inherit eutils autotools depend.php depend.apache multilib flag-o-matic
MY_PV=${PV/_/-}
MY_PN="ZoneMinder"
PiATCH_PV="1.24.3"
DESCRIPTION="ZoneMinder allows you to capture, analyse, record and monitor any cameras attached to your system."
HOMEPAGE="http://www.zoneminder.com/"
SRC_URI="http://www.zoneminder.com/downloads/${MY_PN}-${MY_PV}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug ffmpeg"
#IUSE="debug ffmpeg mmap"
SLOT="0"
DEPEND="app-admin/sudo
dev-libs/libpcre
virtual/jpeg
net-libs/gnutls
>=dev-lang/perl-5.6.0
virtual/perl-Archive-Tar
dev-perl/Archive-Zip
dev-perl/DateManip
dev-perl/DBD-mysql
dev-perl/DBI
dev-perl/Device-SerialPort
dev-perl/libwww-perl
dev-perl/MIME-Lite
dev-perl/MIME-tools
dev-perl/PHP-Serialization
virtual/perl-Getopt-Long
virtual/perl-libnet
virtual/perl-Module-Load
virtual/perl-Sys-Syslog
virtual/perl-Time-HiRes"
RDEPEND="dev-perl/DBD-mysql
ffmpeg? ( >=media-video/ffmpeg-0.5-r1 )
media-libs/netpbm"
# we cannot use need_httpd_cgi here, since we need to setup permissions for the
# webserver in global scope (/etc/zm.conf etc), so we hardcode apache here.
need_apache
need_php_httpd
S=${WORKDIR}/${MY_PN}-${MY_PV}
pkg_setup() {
require_php_with_use mysql sockets apache2
}
src_unpack() {
unpack ${A}
cd "${S}"
eautoreconf
}
src_compile() {
local myconf
# To enable mmap support we need a dependancy of Sys::Mmap
# It installs fine via g-cpan, but there's no ebuild currently in portage.
# if use mmap; then
# myconf="${myconf} --enable-mmap=yes"
# else
# myconf="${myconf} --enable-mmap=no"
# fi
append-flags "-D__STDC_CONSTANT_MACROS"
if use debug; then
myconf="${myconf} --enable-debug=yes --enable-crashtrace=yes"
else
myconf="${myconf} --enable-debug=no --enable-crashtrace=no"
fi
econf --with-libarch=$(get_libdir) \
--with-mysql=/usr \
$(use_with ffmpeg) \
--with-webdir="${ROOT}var/www/zoneminder/htdocs" \
--with-cgidir="${ROOT}var/www/zoneminder/cgi-bin" \
--with-webuser=apache \
--with-webgroup=apache \
--disable-mmap \
--with-webhost=zm.localdomain \
${myconf}
einfo "${PN} does not parallel build... using forcing make -j1..."
emake -j1 || die "emake failed"
}
src_install() {
dodir /var/run/zm
keepdir /var/run/zm
emake -j1 DESTDIR="${D}" install || die "emake install failed"
fperms 0640 /etc/zm.conf
keepdir /var/log/${PN}
fowners apache:apache /var/log/${PN}
fowners apache:apache /var/run/zm
newinitd "${FILESDIR}"/init.d zoneminder
newconfd "${FILESDIR}"/conf.d zoneminder
dodoc AUTHORS ChangeLog INSTALL NEWS README TODO
insinto /usr/share/${PN}/db
doins db/zm_u* db/zm_create.sql
insinto /etc/apache2/vhosts.d
doins "${FILESDIR}"/10_zoneminder.conf
for DIR in events images sound; do
dodir "${ROOT}"/var/www/zoneminder/htdocs/${DIR}
done
}
pkg_postinst() {
elog ""
elog "0. If this is a new installation, you will need to create a MySQL database"
elog " for ${PN} to use. (see http://www.gentoo.org/doc/en/mysql-howto.xml)."
elog " Once you completed that you should execute the following:"
elog ""
elog " cd /usr/share/${PN}"
elog " mysql -u <my_database_user> -p<my_database_pass> <my_zoneminder_db> < db/zm_create.sql"
elog ""
elog "1. Set your database settings in /etc/zm.conf"
elog ""
elog "2. Start the ${PN} daemon:"
elog ""
elog " /etc/init.d/${PN} start"
elog ""
elog "3. Finally point your browser to http://localhost/${PN}"
elog ""
elog ""
elog "If you are upgrading, you will need to run the zmupdate.pl script:"
elog ""
elog " /usr/bin/zmupdate.pl version=<from version> [--user=<my_database_user> --pass=<my_database_pass>]"
elog ""
} |
Can anyone tell me where the problem is?
Cheers,
Note : I'm not a developper… -at all-. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Tue May 17, 2011 12:32 am Post subject: |
|
|
Code: |
ACCESS DENIED mkdir: /var/run/zm
|
are you running emerge as root, or as your normal user?
NB: something about the way that dodir has been done looks very wrong. Can't place it offhand, don't have the time to look into it in great detail. But trying to operate directly on / with dodir seems wrong. _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
Raphux n00b
Joined: 11 Sep 2004 Posts: 41 Location: Paris
|
Posted: Tue May 17, 2011 8:50 am Post subject: |
|
|
Quote: | are you running emerge as root, or as your normal user? |
As root. The dodir is something that I added, hopping that it'll resolved my problem, but it didn't. The message is exactly the same with or without the dodir.
The complete ebuild, without the dodir : zoneminder-1.24.3.ebuild
Here is the complete build process, without the dodir : emerge logs
and here are other infos (emerge --info): emerge info |
|
Back to top |
|
|
Btoo n00b
Joined: 24 Sep 2008 Posts: 42 Location: An isolated island
|
Posted: Fri May 20, 2011 8:54 pm Post subject: |
|
|
Any one having success with 1.24.3? If the error is just to make a dir, why not just add it before emerging? Anyone using Zoneminder and eyeZM knows this latest version saves lots of time. I will try it this week and report back.... |
|
Back to top |
|
|
|