Re: nvidia-driver 64bit version

2009-12-06 Thread Victor Popov
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Alexey,

Alexey Dokuchaev wrote:
> On Fri, Dec 04, 2009 at 03:35:47PM +, Alexey Dokuchaev wrote:
>> In any case, I'll post a diff here for review before I make any commits
>> WRT amd64 support in nvidia-driver.
> 
> OK, see attached diff.  I could not test amd64 version, because my amd64
> box is currently down, but will certainly do so once it's up'n'running
> again.  i386 version works fine so far.
> 
> I would appreciate any testing (esp. amd64) of the patched port.  Please
> note that some changes in pkg-list occurred; try to see that port
> deinstalls cleanly in amd64 case (both via "make deinstall" and
> "pkg_delete").  And, of course, that it installs and works.
uname -a:
FreeBSD vic.hcn-strela.ru 8.0-STABLE FreeBSD 8.0-STABLE #0: Fri Dec  4
00:48:18 MSK 2009 r...@vic.hcn-strela.ru:/usr/obj/usr/src/sys/VIC  amd64
4Gb, 8800GTX.

Installs: cleanly
Deinstalls: cleanly
pkg_delete: cleanly
Works: yes (tested native app: ioquake3; linux apps: googleearth,
linux-quake4)

Thank you very much for the port!

> 
> Thanks.
> 
> ./danfe

- --
Best regards, Victor Popov  mailto:v.a.po...@gmail.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.13 (FreeBSD)

iEYEARECAAYFAkscPhoACgkQtKisLOtMPvniLgCg0+RJ6+reLMTapNzULZB00Hfz
qvYAoM5xNFireXGY1YbDZ+t1/mFW1vON
=FLi/
-END PGP SIGNATURE-
___
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"


[patch] net-p2p/deluge port improvement - startup scripts

2009-01-24 Thread Victor Popov

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Jeremy and everybody on the list,

Deluge bittorrent client is great, and has a flexible architecture, which
allows user to run a downloading daemon, only occasionally launching an
user interface to manage downloads; all the other time daemon can work
unattended.
net-p2p/deluge port is missing startup scripts for daemon, and this is
what I want to be fixed.

The attached patch adds two rc scripts, for launching the daemon, deluged,
and for launching deluge in webui mode. Ideally, this should be several
separate ports, like net-p2p/transmission-*, but deluge is installed by
own installer, so dividing port into several would require a lot of work.

Some comments about why I wrote these startup scripts in this way:
- - First of all, I don't at all like the idea of running p2p client as
usual desktop user for security reasons - desktop users may store
sensitive information in their mailboxes, browser configs and other
places, so it is better to dedicate different uid for peering task. This
is why _user and _home configuration variables are introduced.
I wonder, should we assign an uid in the UIDs file? What default homedir
should this user have? I've set default to /home/deluge, and maybe there
are better places?
- - Minor bug in launching command-line: it should be --logfile=${logfile},
not a redirection, but unfortunately it does not work now. Could not
investigate and fix it, sorry.
- - run_rc_command is called with environment variable HOME set to ${home},
because deluged can't determine homedir from user, and it does not accept
"-c" switch.
- - Bug in deluge-webui script: when it is time to stop deluge, script has
to find process due to lack of pidfile. If at that time you are running
deluge with gtk UI, script will find your instance, and will try to kill
it. If deluge_webui_user is not you, it's ok, your deluge is safe, but
after that script will not be able to start webui, because it would think
it is already running. This is because deluge program does not accept
"--pidfile" parameter. There is already a feature-request in deluge
bug-tracker for adding pidfile [http://dev.deluge-torrent.org/ticket/758],
so maybe soon it would be possible to improve this script.


Can this patch be commited, please? If something is wrong, comments would
be very appreciated.

P.S.: Sorry for my bad English, vast discourse on possibly obvious things
and a long message.

- --
Best regards, Victor Popov  mailto:v.a.po...@gmail,com
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.10 (FreeBSD)

iEYEARECAAYFAkl76UQACgkQtKisLOtMPvlCNACg07Bpkjm2YmxTGeNu6kY4tnOk
Mu8AoLMUqFci6fwfCSG1XtllVUlGDuYs
=KGuU
-END PGP SIGNATURE-
diff -urN net-p2p/deluge.orig/Makefile net-p2p/deluge/Makefile
--- net-p2p/deluge.orig/Makefile2009-01-19 07:18:08.0 +0300
+++ net-p2p/deluge/Makefile 2009-01-25 02:32:25.506351031 +0300
@@ -7,6 +7,7 @@
 
 PORTNAME=  deluge
 PORTVERSION=   1.1.0
+PORTREVISION=  1
 CATEGORIES=net-p2p python
 MASTER_SITES=  http://ftp.osuosl.org/pub/deluge/source/${PORTVERSION}/
 
@@ -53,6 +54,10 @@
@${ECHO_CMD} "Keep in mind, choice WITHOUT_PYGTK still will installing 
a lot of GUI files that are for pygtk. The installation tool does not provide 
option to disable install the GUI files. These GUI files are harmless as long 
as you do not touch these or it won't work because it needs pygtk." | ${FMT} 75 
75
 .endif
 
+USE_RC_SUBR=   deluged deluge-webui
+SUB_LIST=  PYTHON_CMD=${PYTHON_CMD}
+SUB_FILES= deluged deluge-webui
+
 post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ; \
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' \
diff -urN net-p2p/deluge.orig/files/deluge-webui.in 
net-p2p/deluge/files/deluge-webui.in
--- net-p2p/deluge.orig/files/deluge-webui.in   1970-01-01 03:00:00.0 
+0300
+++ net-p2p/deluge/files/deluge-webui.in2009-01-25 02:31:14.036748983 
+0300
@@ -0,0 +1,41 @@
+#!/bin/sh
+#
+# PROVIDE: deluge_webui
+# REQUIRE: LOGIN deluged
+# KEYWORD: shutdown
+#
+#
+# Add the following line to /etc/rc.conf to enable the deluge web ui daemon:
+#
+# deluge_webui_enable (bool):  Set to "NO" by default.
+#  Set it to "YES" to enable deluge web ui daemon.
+# deluge_webui_user (str): Defaults to "deluge"
+#  User running deluge web ui daemon
+# deluge_webui_home (str): Defaults to "/home/deluge"
+#  Directory to store configuration and possibly 
downloads
+# deluge_webui_logfile (str):  Defaults to 
"$deluge_webui_home/deluge_webui.log"
+# deluge_webui_loglevel (str): Verbosity of logging, defaults to "error". 
Possible values:
+#  none, info, warning, error, critical, debug
+# deluge_webui_args (str): Custom additiona

Re: [patch] net-p2p/deluge port improvement - startup scripts + update to 1.1.1

2009-01-25 Thread Victor Popov

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello everyone,

Replying to myself, sorry.

Victor Popov wrote:

| Deluge bittorrent client is great, and has a flexible architecture, which
| allows user to run a downloading daemon, only occasionally launching an
| user interface to manage downloads; all the other time daemon can work
| unattended.
| net-p2p/deluge port is missing startup scripts for daemon, and this is
| what I want to be fixed.
|
| The attached patch adds two rc scripts, for launching the daemon, deluged,
| and for launching deluge in webui mode. Ideally, this should be several
| separate ports, like net-p2p/transmission-*, but deluge is installed by
| own installer, so dividing port into several would require a lot of work.
|
| Some comments about why I wrote these startup scripts in this way:
| - First of all, I don't at all like the idea of running p2p client as
| usual desktop user for security reasons - desktop users may store
| sensitive information in their mailboxes, browser configs and other
| places, so it is better to dedicate different uid for peering task. This
| is why _user and _home configuration variables are introduced.
| I wonder, should we assign an uid in the UIDs file? What default homedir
| should this user have? I've set default to /home/deluge, and maybe there
| are better places?
| - Minor bug in launching command-line: it should be --logfile=${logfile},
| not a redirection, but unfortunately it does not work now. Could not
| investigate and fix it, sorry.
Fixed in new version and handled in updated patch.

| - run_rc_command is called with environment variable HOME set to ${home},
| because deluged can't determine homedir from user, and it does not accept
| "-c" switch.
| - Bug in deluge-webui script: when it is time to stop deluge, script has
| to find process due to lack of pidfile. If at that time you are running
| deluge with gtk UI, script will find your instance, and will try to kill
| it. If deluge_webui_user is not you, it's ok, your deluge is safe, but
| after that script will not be able to start webui, because it would think
| it is already running. This is because deluge program does not accept
| "--pidfile" parameter. There is already a feature-request in deluge
| bug-tracker for adding pidfile [http://dev.deluge-torrent.org/ticket/758],
| so maybe soon it would be possible to improve this script.
|
|
| Can this patch be commited, please? If something is wrong, comments would
| be very appreciated.

I've updated my patch to deliver new version of deluge - 1.1.1. In
addition to portversion bump and distfile changes, I've changed
MASTER_SITES to "official" download site, although it has the same IP now,
it can change in future. Also, some plist fixes related to new version.


- --
Best regards, Victor Popov  mailto:v.a.po...@gmail.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.10 (FreeBSD)

iEYEARECAAYFAkl8p8oACgkQtKisLOtMPvlKGwCguSKaE0BwjqqkPpAexYo+UsaS
emAAoNb+LHfj45BNbU9bAljm1x8WwAev
=+WiO
-END PGP SIGNATURE-
diff -urN net-p2p/deluge.orig/Makefile net-p2p/deluge/Makefile
--- net-p2p/deluge.orig/Makefile2009-01-19 07:18:08.0 +0300
+++ net-p2p/deluge/Makefile 2009-01-25 20:16:45.647549998 +0300
@@ -6,9 +6,9 @@
 #
 
 PORTNAME=  deluge
-PORTVERSION=   1.1.0
+PORTVERSION=   1.1.1
 CATEGORIES=net-p2p python
-MASTER_SITES=  http://ftp.osuosl.org/pub/deluge/source/${PORTVERSION}/
+MASTER_SITES=  http://download.deluge-torrent.org/source/${PORTVERSION}/
 
 MAINTAINER=m...@freebsd.org
 COMMENT=   A Bittorrent client, using Python, GTK+2 and Rasterbar 
libtorrent
@@ -53,6 +53,11 @@
@${ECHO_CMD} "Keep in mind, choice WITHOUT_PYGTK still will installing 
a lot of GUI files that are for pygtk. The installation tool does not provide 
option to disable install the GUI files. These GUI files are harmless as long 
as you do not touch these or it won't work because it needs pygtk." | ${FMT} 75 
75
 .endif
 
+USE_RC_SUBR=   deluged deluge-webui
+SUB_FILES= deluged deluge-webui
+SUB_LIST=  PYTHON_CMD=${PYTHON_CMD}
+PLIST_SUB+=PORTVERSION=${PORTVERSION}
+
 post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ; \
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' \
diff -urN net-p2p/deluge.orig/distinfo net-p2p/deluge/distinfo
--- net-p2p/deluge.orig/distinfo2009-01-19 07:18:08.0 +0300
+++ net-p2p/deluge/distinfo 2009-01-25 19:38:04.190129856 +0300
@@ -1,3 +1,3 @@
-MD5 (deluge-1.1.0.tar.gz) = 22d8016934cc891da4e0b75949681703
-SHA256 (deluge-1.1.0.tar.gz) = 
b77ea2052ab167ecd46e75ad957891cf95d4e3cc30aa18fc184f0bda17b31efe
-SIZE (deluge-1.1.0.tar.gz) = 3055618
+MD5 (deluge-1.1.1.tar.gz) = e4d00f24b94d33e3f02c99361bec57dc
+SHA256 (deluge-1.1.1.tar.gz) = 
0af39b827ced9af4553879e9751463b0f34c8db8d60c83dc4873ada28d1549c5
+SIZE (deluge-1.1.1.tar.gz) = 3088901
diff -urN net-p2