Re: New port needs review: net/erlyvideo

2011-01-27 Thread Ruslan Mahmatkhanov

25.01.2011 00:22, Ruslan Mahmatkhanov пишет:


Hi!

Thank you all much for all the tips and guidance.
So it seems i'm finally was able to produce a port,
that installs and deinstalls fine both installed
from a port and package.

The only question that i have: what if my port installs
some stuff into /var/lib/%%PORTNAME%%/snmp (i.e. that
directory isn't empty after installing). There is no
problem when installing from ports, but how can i do
the same when installing from package? How to correctly
install and deinstall data via package from /var?

Thanks in advance.

There is also updated links:
port: http://happy-nation.by.ru/ports/tb/erlyvideo.tgz
diff: http://happy-nation.by.ru/ports/erlyvideo.diff
shar: http://happy-nation.by.ru/ports/erlyvideo.shar



This is finally solved. Thanks pav@ for clarification about /var issue. 
And thank you all for all the help.


http://www.freebsd.org/cgi/query-pr.cgi?pr=154345

--
Regards,
Ruslan
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: New port needs review: net/erlyvideo

2011-01-24 Thread Ruslan Mahmatkhanov


Hi!

Thank you all much for all the tips and guidance.
So it seems i'm finally was able to produce a port,
that installs and deinstalls fine both installed
from a port and package.

The only question that i have: what if my port installs
some stuff into /var/lib/%%PORTNAME%%/snmp (i.e. that
directory isn't empty after installing). There is no
problem when installing from ports, but how can i do
the same when installing from package? How to correctly
install and deinstall data via package from /var?

Thanks in advance.

There is also updated links:
port: http://happy-nation.by.ru/ports/tb/erlyvideo.tgz
diff: http://happy-nation.by.ru/ports/erlyvideo.diff
shar: http://happy-nation.by.ru/ports/erlyvideo.shar

--
Regards,
Ruslan
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: New port needs review: net/erlyvideo

2011-01-17 Thread Ruslan Mahmatkhanov

17.01.2011 00:45, Jason Helfman пишет:


You may wish to consider a for loop on the make install target.
Are these directories created during the install process of the
package? I
didn't see these directories created outside of the Makefile.


Do you mean something like this?

DIRS= /var/lib/${PORTNAME}/movies /var/lib/${PORTNAME}/plugins \
/var/log/${PORTNAME} ${ERLYDIR} ${ETCDIR} ${WWWDIR}
.for dir in ${DIRS}
${MKDIR} ${dir}
.endfor


Yes, however are they created during a pkg_add command? Consider a recent
patch I submitted for comms/minicom.

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/153749

Directories created in Makefile process, aren't created in the packaging
process, unless you are putting the operations into a pkg-install or an
@exec operation in pkg-plist, respectively.

That is my understanding, and what I have found in fixing ports here and
there. I fixed the packaging for www/tomcat55, as well. I found that as a
port it worked fine, however package installation would fail.


Jason, i fixed all the issues that you mentioned besides this one.

1. for loop somehow doesn't work for ${ETCDIR}, ${WWWDIR}, ${ERLDIR} 
in Makefile. I tried to add this lines and it fails to create this 
directories:


.for dir in /var/lib/${PORTNAME}/movies /var/lib/${PORTNAME}/plugins 
\ 		/var/log/${PORTNAME} ${ETCDIR} ${ERLYDIR} ${WWWDIR}

${MKDIR} ${dir}
.endfor

But dirs in /var still created fine.

2. When i do a `make package` then i see that in created package 
directories and files that installed into /var/lib/${PORTNAME} and 
/var/log/${PORTNAME} are missing (still ${ETCDIR}, ${WWWDIR}, ${ERLDIR} 
added to package without any problem).


This directories is created in filesystem, but missing in package file.
I read 
http://www.freebsd.org/doc/en/books/porters-handbook/plist-cleaning.html 
and PR 153749 but it doesn't help much. Directories in /var are created, 
but not included into a package. How can i fix that?


--
Regards,
Ruslan
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: New port needs review: net/erlyvideo

2011-01-17 Thread Matthew Seaman
On 17/01/2011 20:26, Jason Helfman wrote:
 .for dir in /var/lib/${PORTNAME}/movies /var/lib/${PORTNAME}/plugins
 \ /var/log/${PORTNAME} ${ETCDIR} ${ERLYDIR} ${WWWDIR}
 ${MKDIR} ${dir}
 .endfor
 

This snippet needs to be associated with some sort of make target or it
will never get run.  You can do something like this:

DIRS= /var/lib/${PORTNAME}/movies \
  /var/lib/${PORTNAME}/plugins\
  /var/log/${PORTNAME}\
  ${ETCDIR}  ${ERLYDIR} ${WWWDIR}

.for dir  in $DIRS

dirs :: ${dir}
${MKDIR} ${.TARGET}

.endfor


Or you could have just one target and put a shell loop as the action:

DIRS= ...

dirs :
for d in ${DIRS} ; do \
${MKDIR} $$d ;\
done

Note the backslashes so that make(1) executes all of that as one
command, and the required use of ';' to mark the end of the different
shell statements.

 I believe you need to do this:
 
 ${MKDIR} $${dir}

No -- that's not the case here.  You need to do this if you have a shell
for-loop as part of the action of a target (the second example above),
as $$ causes make to pass a literal $ through to the underlying shell,
rather than expanding it as a make(1) variable.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: New port needs review: net/erlyvideo

2011-01-16 Thread Ruslan Mahmatkhanov

16.01.2011 00:31, Ruslan Mahmatkhanov пишет:

Hello!

I'm finally completed with port of erlyvideo (see erlyvideo.org for details). 
But before i'll post PR, i want that somebody review it. Because i'm sure there 
is something that can be made better. I'm attached the diff to make commenting 
more convenient but you can also download port directory if you prefer:
http://happy-nation.by.ru/ports/tb/erlyvideo.tgz

Thanks in advance for any suggestions, critics, corrections.


Just in case anybody else noticed it, there was MASTER_SITES fetch error 
in original tarball. It was pointed out by Kurt Jaeger. Now it was fixed 
and new tarball reupploaded. There is also updated diff-file:

http://happy-nation.by.ru/ports/erlyvideo.diff

There is also short usage manual:
- install the port
- cp /usr/local/etc/erlyvideo/*.conf[ig].sample into just *.conf[ig]
- then do `erlyctl start`
- place some mpeg file into /var/erlyvideo/movies
- go to http://localhost:8082/flowplayer/ with flash-aware web-browser
- click play button
- you should see your mpeg movie packed to flv and transferred to you 
via rtmp


More complicated usage scenarios (like RTSP H.264 cameras, FLME etc) is 
available on http://erlyvideo.org/docs.


--
Regards,
Ruslan
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: New port needs review: net/erlyvideo

2011-01-16 Thread Jason Helfman

On Sun, Jan 16, 2011 at 08:25:18PM +0300, Ruslan Mahmatkhanov thus spake:

16.01.2011 00:31, Ruslan Mahmatkhanov пишет:

Hello!

I'm finally completed with port of erlyvideo (see erlyvideo.org for details). 
But before i'll post PR, i want that somebody review it. Because i'm sure there 
is something that can be made better. I'm attached the diff to make commenting 
more convenient but you can also download port directory if you prefer:
http://happy-nation.by.ru/ports/tb/erlyvideo.tgz

Thanks in advance for any suggestions, critics, corrections.


Just in case anybody else noticed it, there was MASTER_SITES fetch error
in original tarball. It was pointed out by Kurt Jaeger. Now it was fixed
and new tarball reupploaded. There is also updated diff-file:
http://happy-nation.by.ru/ports/erlyvideo.diff

There is also short usage manual:
- install the port
- cp /usr/local/etc/erlyvideo/*.conf[ig].sample into just *.conf[ig]
- then do `erlyctl start`
- place some mpeg file into /var/erlyvideo/movies
- go to http://localhost:8082/flowplayer/ with flash-aware web-browser
- click play button
- you should see your mpeg movie packed to flv and transferred to you
via rtmp

More complicated usage scenarios (like RTSP H.264 cameras, FLME etc) is
available on http://erlyvideo.org/docs.

--
Regards,
Ruslan


Just a couple of notes, so far...

The comment reads redundantly, and is too long so it will not display
properly when listing with pkg_info:

+COMMENT=   Erlyvideo is an RTMP flash streaming server, written in
erlang

Perhaps consider this:
RMTP flash streaming server written in erlang


It appears that git is required for the program:

--- erlyvideo.orig/files/patch-Makefile 1970-01-01 03:00:00.0 +0300
+++ erlyvideo/files/patch-Makefile  2011-01-15 15:03:24.0 +0300
@@ -0,0 +1,21 @@
+--- Makefile.orig  2010-12-16 00:51:55.0 +0300
 Makefile   2011-01-15 15:03:11.0 +0300
+@@ -19,7 +19,6 @@
+ deps/amf: update_deps
+ 
+ update_deps: rebar.config

+-  [ -d wwwroot/player ] || git clone
git://github.com/erlyvideo/erlyplayer wwwroot/player
+   ./rebar get-deps
+ 
+ 


However there is no dependency for git, if I am interpretting this
correctly. 


If this updates, or pulls down code during installation, you may
wish to package it, or not do this step. I don't believe post-fetch fetching
or updating of files to build a port is allowed through pointyhat. Others
can speak to that, though.

You may wish to consider a for loop on the make install target.
Are these directories created during the install process of the package? I
didn't see these directories created outside of the Makefile.

I noticed many '.gitignore' files in the pkg-plist. Is this necessary? I've
never worked with git before, or this application.

When submitting this as a port through the PR system, I would suggest using
the shar utility:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-submitting.html

-jgh

--
Jason Helfman
System Administrator
experts-exchange.com
http://www.experts-exchange.com/M_4830110.html
E4AD 7CF1 1396 27F6 79DD  4342 5E92 AD66 8C8C FBA5
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: New port needs review: net/erlyvideo

2011-01-16 Thread Ruslan Mahmatkhanov

16.01.2011 23:44, Jason Helfman пишет:

On Sun, Jan 16, 2011 at 08:25:18PM +0300, Ruslan Mahmatkhanov thus spake:

16.01.2011 00:31, Ruslan Mahmatkhanov пишет:

Hello!

I'm finally completed with port of erlyvideo (see erlyvideo.org for
details). But before i'll post PR, i want that somebody review it.
Because i'm sure there is something that can be made better. I'm
attached the diff to make commenting more convenient but you can also
download port directory if you prefer:
http://happy-nation.by.ru/ports/tb/erlyvideo.tgz

Thanks in advance for any suggestions, critics, corrections.


Just in case anybody else noticed it, there was MASTER_SITES fetch error
in original tarball. It was pointed out by Kurt Jaeger. Now it was fixed
and new tarball reupploaded. There is also updated diff-file:
http://happy-nation.by.ru/ports/erlyvideo.diff

There is also short usage manual:
- install the port
- cp /usr/local/etc/erlyvideo/*.conf[ig].sample into just *.conf[ig]
- then do `erlyctl start`
- place some mpeg file into /var/erlyvideo/movies
- go to http://localhost:8082/flowplayer/ with flash-aware web-browser
- click play button
- you should see your mpeg movie packed to flv and transferred to you
via rtmp

More complicated usage scenarios (like RTSP H.264 cameras, FLME etc) is
available on http://erlyvideo.org/docs.

--
Regards,
Ruslan


Just a couple of notes, so far...

The comment reads redundantly, and is too long so it will not display
properly when listing with pkg_info:

+COMMENT= Erlyvideo is an RTMP flash streaming server, written in
erlang

Perhaps consider this:
RMTP flash streaming server written in erlang


Agree. I will do.


It appears that git is required for the program:

--- erlyvideo.orig/files/patch-Makefile 1970-01-01 03:00:00.0 +0300
+++ erlyvideo/files/patch-Makefile 2011-01-15 15:03:24.0 +0300
@@ -0,0 +1,21 @@
+--- Makefile.orig 2010-12-16 00:51:55.0 +0300
 Makefile 2011-01-15 15:03:11.0 +0300
+@@ -19,7 +19,6 @@
+ deps/amf: update_deps
+ + update_deps: rebar.config
+- [ -d wwwroot/player ] || git clone
git://github.com/erlyvideo/erlyplayer wwwroot/player
+ ./rebar get-deps
+ +
However there is no dependency for git, if I am interpretting this
correctly.
If this updates, or pulls down code during installation, you may
wish to package it, or not do this step. I don't believe post-fetch
fetching
or updating of files to build a port is allowed through pointyhat. Others
can speak to that, though.


As you can see this patch indeed eliminates using of git, because this 
part isn't really needed for erlyvideo to work.



You may wish to consider a for loop on the make install target.
Are these directories created during the install process of the package? I
didn't see these directories created outside of the Makefile.


Do you mean something like this?

DIRS=   /var/lib/${PORTNAME}/movies /var/lib/${PORTNAME}/plugins \
/var/log/${PORTNAME} ${ERLYDIR} ${ETCDIR} ${WWWDIR}
.for dir in ${DIRS}
${MKDIR} ${dir}
.endfor



I noticed many '.gitignore' files in the pkg-plist. Is this necessary? I've
never worked with git before, or this application.


No, it isn't needed. I'll try to delete them before install.


When submitting this as a port through the PR system, I would suggest using
the shar utility:


Yep, i know. I post the diff just to make it easy to comment in email.



http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-submitting.html


-jgh



Thank you for your suggestions!

--
Regards,
Ruslan
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: New port needs review: net/erlyvideo

2011-01-16 Thread Jason Helfman

On Mon, Jan 17, 2011 at 12:22:59AM +0300, Ruslan Mahmatkhanov thus spake:

16.01.2011 23:44, Jason Helfman пишет:

On Sun, Jan 16, 2011 at 08:25:18PM +0300, Ruslan Mahmatkhanov thus spake:

As you can see this patch indeed eliminates using of git, because this
part isn't really needed for erlyvideo to work.


Read this wrong. Thanks, for pointing this out.


You may wish to consider a for loop on the make install target.
Are these directories created during the install process of the package? I
didn't see these directories created outside of the Makefile.


Do you mean something like this?

DIRS=   /var/lib/${PORTNAME}/movies /var/lib/${PORTNAME}/plugins \
/var/log/${PORTNAME} ${ERLYDIR} ${ETCDIR} ${WWWDIR}
.for dir in ${DIRS}
${MKDIR} ${dir}
.endfor


Yes, however are they created during a pkg_add command? Consider a recent
patch I submitted for comms/minicom.

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/153749

Directories created in Makefile process, aren't created in the packaging
process, unless you are putting the operations into a pkg-install or an
@exec operation in pkg-plist, respectively.

That is my understanding, and what I have found in fixing ports here and
there. I fixed the packaging for www/tomcat55, as well. I found that as a
port it worked fine, however package installation would fail.





I noticed many '.gitignore' files in the pkg-plist. Is this necessary? I've
never worked with git before, or this application.


No, it isn't needed. I'll try to delete them before install.


If it is included in the source, you can just add a post-patch operation
that does a find and removes them, and remove them from the pkg-plist, as
well.




When submitting this as a port through the PR system, I would suggest using
the shar utility:


Yep, i know. I post the diff just to make it easy to comment in email.


I see. Good idea.





http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-submitting.html


-jgh



Thank you for your suggestions!


Your very welcome.
Best regards,
Jason

--
Jason Helfman
System Administrator
experts-exchange.com
http://www.experts-exchange.com/M_4830110.html
E4AD 7CF1 1396 27F6 79DD  4342 5E92 AD66 8C8C FBA5
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: New port needs review: net/erlyvideo

2011-01-16 Thread Wesley Shields
On Sun, Jan 16, 2011 at 01:45:57PM -0800, Jason Helfman wrote:
 On Mon, Jan 17, 2011 at 12:22:59AM +0300, Ruslan Mahmatkhanov thus spake:
 16.01.2011 23:44, Jason Helfman ??:
  On Sun, Jan 16, 2011 at 08:25:18PM +0300, Ruslan Mahmatkhanov thus spake:
 As you can see this patch indeed eliminates using of git, because this
 part isn't really needed for erlyvideo to work.
 
 Read this wrong. Thanks, for pointing this out.
 
  You may wish to consider a for loop on the make install target.
  Are these directories created during the install process of the package? I
  didn't see these directories created outside of the Makefile.
 
 Do you mean something like this?
 
 DIRS=/var/lib/${PORTNAME}/movies /var/lib/${PORTNAME}/plugins \
  /var/log/${PORTNAME} ${ERLYDIR} ${ETCDIR} ${WWWDIR}
 .for dir in ${DIRS}
  ${MKDIR} ${dir}
 .endfor
 
 Yes, however are they created during a pkg_add command? Consider a recent
 patch I submitted for comms/minicom.
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/153749
 
 Directories created in Makefile process, aren't created in the packaging
 process, unless you are putting the operations into a pkg-install or an
 @exec operation in pkg-plist, respectively.
 
 That is my understanding, and what I have found in fixing ports here and
 there. I fixed the packaging for www/tomcat55, as well. I found that as a
 port it worked fine, however package installation would fail.

Excuse me if I'm wrong but I think what Jason is getting at is empty
directories created when installing the port are not put in the package.
This is documented in the handbook:

http://www.freebsd.org/doc/en/books/porters-handbook/plist-cleaning.html

If these directories are created so that you can install files in them
(with INSTALL_FOO macros) then Jason's suggestion is not necessary,
because the files will be registered in the package and the directories
created automatically when using the package.

Not all cases of ${MKDIR} in a port are special. :)

-- WXS
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


New port needs review: net/erlyvideo

2011-01-15 Thread Ruslan Mahmatkhanov
Hello!

I'm finally completed with port of erlyvideo (see erlyvideo.org for details). 
But before i'll post PR, i want that somebody review it. Because i'm sure there 
is something that can be made better. I'm attached the diff to make commenting 
more convenient but you can also download port directory if you prefer: 
http://happy-nation.by.ru/ports/tb/erlyvideo.tgz

Thanks in advance for any suggestions, critics, corrections. 

--
Regards,
Ruslandiff -ruNa erlyvideo.orig/Makefile erlyvideo/Makefile
--- erlyvideo.orig/Makefile 1970-01-01 03:00:00.0 +0300
+++ erlyvideo/Makefile  2011-01-16 00:06:36.0 +0300
@@ -0,0 +1,54 @@
+## New ports collection makefile for:   erlyvideo
+# Date created: 15 January 2011
+# Whom: Ruslan Mahmatkhanov cvs-...@yandex.ru
+#
+# $FreeBSD$
+#
+
+PORTNAME=  erlyvideo
+PORTVERSION=   2.5.11
+CATEGORIES=net
+MASTER_SITES=  https://download.github.com/
+DISTNAME=  ${PORTNAME}-${PORTNAME}-v${PORTVERSION}-0-g25cf0c2
+
+MAINTAINER=cvs-...@yandex.ru
+COMMENT=   Erlyvideo is an RTMP flash streaming server, written in erlang
+
+BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang \
+   ruby:${PORTSDIR}/lang/ruby18
+RUN_DEPENDS=   erl:${PORTSDIR}/lang/erlang
+
+LICENSE=   GPLv3
+LICENSE_FILE=  ${WRKSRC}/COPYING
+
+USE_GMAKE= yes
+
+ERLANGDIR= ${PREFIX}/lib/erlang
+ERLYDIR=   ${ERLANGDIR}/lib/${PORTNAME}-${PORTVERSION}
+WRKSRC=${WRKDIR}/${PORTNAME}-${PORTNAME}-1cf9504
+DEPSLIST=  deps/amf deps/log4erl deps/erlydtl deps/erlmedia deps/mpegts \
+   deps/rtmp deps/rtp deps/rtsp
+
+do-install:
+   ${MKDIR} /var/lib/${PORTNAME}/movies
+   ${MKDIR} /var/lib/${PORTNAME}/plugins
+   ${MKDIR} ${ERLYDIR}
+.for entry in ebin src include lib Emakefile
+   ${CP} -r ${WRKSRC}/${entry} ${ERLYDIR}/
+.endfor
+   ${INSTALL_SCRIPT} ${WRKSRC}/contrib/reverse_mpegts 
${PREFIX}/bin/reverse_mpegts
+   ${REINPLACE_CMD} -e 's#/etc/#${PREFIX}/etc/#g' ${WRKSRC}/contrib/erlyctl
+   ${INSTALL_SCRIPT} ${WRKSRC}/contrib/erlyctl ${PREFIX}/bin/erlyctl
+   ${INSTALL_SCRIPT} ${WRKSRC}/deps/rtmp/contrib/rtmp_bench 
${PREFIX}/bin/rtmp_bench
+   ${MKDIR} ${WWWDIR}
+   ${MKDIR} ${ETCDIR}
+   ${CP} -r ${WRKSRC}/wwwroot ${WWWDIR}
+   ${MKDIR} /var/log/${PORTNAME}
+   ${CP} ${WRKSRC}/priv/erlyvideo.conf.sample 
${ETCDIR}/erlyvideo.conf.sample
+   ${CP} ${WRKSRC}/priv/log4erl.conf.debian ${ETCDIR}/log4erl.conf.sample
+   ${CP} ${WRKSRC}/priv/production.config.debian 
${ETCDIR}/production.config.sample
+   ${CP} -r ${WRKSRC}/snmp /var/lib/${PORTNAME}
+.for dep in ${DEPSLIST}
+   cd ${WRKSRC}/${dep}  make DESTDIR=/ ERLANG_ROOT=${ERLANGDIR} 
VERSION=${PORTVERSION} install
+.endfor
+.include bsd.port.mk
diff -ruNa erlyvideo.orig/distinfo erlyvideo/distinfo
--- erlyvideo.orig/distinfo 1970-01-01 03:00:00.0 +0300
+++ erlyvideo/distinfo  2011-01-14 14:11:57.0 +0300
@@ -0,0 +1,2 @@
+SHA256 (erlyvideo-erlyvideo-v2.5.11-0-g25cf0c2.tar.gz) = 
3b0a34cd77574eee5e307077674fa368b8cde6336f944356d489d3dc7ca3ecb1
+SIZE (erlyvideo-erlyvideo-v2.5.11-0-g25cf0c2.tar.gz) = 2462396
diff -ruNa erlyvideo.orig/files/patch-Makefile erlyvideo/files/patch-Makefile
--- erlyvideo.orig/files/patch-Makefile 1970-01-01 03:00:00.0 +0300
+++ erlyvideo/files/patch-Makefile  2011-01-15 15:03:24.0 +0300
@@ -0,0 +1,21 @@
+--- Makefile.orig  2010-12-16 00:51:55.0 +0300
 Makefile   2011-01-15 15:03:11.0 +0300
+@@ -19,7 +19,6 @@
+ deps/amf: update_deps
+ 
+ update_deps: rebar.config
+-  [ -d wwwroot/player ] || git clone 
git://github.com/erlyvideo/erlyplayer wwwroot/player
+   ./rebar get-deps
+ 
+ 
+@@ -32,8 +31,8 @@
+ 
+ compile: ebin/mmap.so
+   ERL_LIBS=$(ERL_LIBS) erl -make
+-  (cd deps/erlydtl  make)
+-  (cd deps/mpegts  make)
++  (cd deps/erlydtl  gmake)
++  (cd deps/mpegts  gmake)
+ 
+ ebin/mmap.so: src/core/mmap.c
+   $(NIF_FLAGS) -o $@ $ -I $(NIFDIR) || touch $@
diff -ruNa erlyvideo.orig/files/patch-deps-erlmedia_Makefile 
erlyvideo/files/patch-deps-erlmedia_Makefile
--- erlyvideo.orig/files/patch-deps-erlmedia_Makefile   1970-01-01 
03:00:00.0 +0300
+++ erlyvideo/files/patch-deps-erlmedia_Makefile2011-01-15 
22:24:14.0 +0300
@@ -0,0 +1,10 @@
+--- deps/erlmedia/Makefile.orig2010-12-16 00:51:55.0 +0300
 deps/erlmedia/Makefile 2011-01-15 22:22:24.0 +0300
+@@ -1,7 +1,5 @@
+ ERLDIR=$(ERLANG_ROOT)/lib/erlmedia-$(VERSION)
+ 
+-DESTROOT=$(CURDIR)/debian/erlmedia
+-
+ all:
+   erl -make
+ 
diff -ruNa erlyvideo.orig/files/patch-deps-mpegts_Makefile 
erlyvideo/files/patch-deps-mpegts_Makefile
--- erlyvideo.orig/files/patch-deps-mpegts_Makefile 1970-01-01 
03:00:00.0 +0300
+++ erlyvideo/files/patch-deps-mpegts_Makefile  2011-01-15 22:25:37.0 
+0300
@@ -0,0 +1,14 @@
+---