bugSavane - Bugs: bug #7602, FreeBSD Howto for savane 2.0

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #7602: FreeBSD Howto for savane 2.0

Submitted by:  Rick Paquette <bitwit>
Submitted on:  Wed 01 Nov 2006 02:18:33 PM UTC  
 
Category: PackagingStatus: Confirmed
Severity: 3 - NormalPriority: C - Normal
Assigned to: NoneOpen/Closed: Open
Release: 2.0Planned Release: 
Reproducibility: NonePrivacy: Public

(Jump to the original submission Jump to the original submission)

Mon 20 Nov 2006 01:23:16 AM UTC, comment #15:

I have a test site running FreeBSD Savane up at http://www.oldtimegarage.com/
For testers, please post bugs or notes here as otg.com is a volatile space. Database may be destroyed and reinitialized during install remove reinstall testing.

Rick Paquette <bitwit>
Mon 13 Nov 2006 03:09:36 PM UTC, comment #14:

"admin" is specific here at gna.org

about adm, I have no clue, I dont remember.

Mathieu Roy <yeupou>
Project Administrator
Mon 13 Nov 2006 03:08:05 PM UTC, comment #13:

these groups need to be created pre install ? adm and admin are not found in my systems (default install), my references are SuSE 10.1 and FreeBSD 6.1, I don't recall mention in the savane docs, maybe I missed it.

Rick Paquette <bitwit>
Mon 13 Nov 2006 02:01:36 PM UTC, comment #12:

>'adm' not in /etc/group , is it cvs specific ?


Err, I could not tell. I now we have this group at cvs.gna.org and that differs from the admin group (which is the name of the siteadmin group at gna) but I dont know how standard it is. So far, no one complained about it.

>line 603 in backend/download/sv_gpgcheckfiles.pl
> system("chown", "root:".$project_gid{$project}, "$directory/maybe-corrupted");
>
> not positive on perl syntax, but, the above looks odd to me


No, that's perfectly fine.

Mathieu Roy <yeupou>
Project Administrator
Mon 13 Nov 2006 01:54:03 PM UTC, comment #11:

line 135 in lib/Savane/Cvs.pm
system("chown", "root.adm", "$dir_cvs/CVSROOT", "-R");

'adm' not in /etc/group , is it cvs specific ?

line 603 in backend/download/sv_gpgcheckfiles.pl
system("chown", "root:".$project_gid{$project}, "$directory/maybe-corrupted");

not positive on perl syntax, but, the above looks odd to me
if "$var/string" is valid in double quotes for concat so too should "string$var[$var]"

so

system("chown", "root:$project_gid{$project}", "$directory/maybe-corrupted");

should be ok, less confusing ?

Rick Paquette <bitwit>
Mon 13 Nov 2006 01:15:10 PM UTC, comment #10:

I think it is really adm (!= admin) that is meant.

Mathieu Roy <yeupou>
Project Administrator
Mon 13 Nov 2006 12:26:37 PM UTC, comment #9:

Also noted a bit I wasn't sure about

"$user:".$group

is this concat string ? or typo and group "adm" = "admin" ?

Rick Paquette <bitwit>
Mon 13 Nov 2006 12:14:43 PM UTC, comment #8:

Suggest a test of some envvar or uname -a to determine OS and use 'hostname' or 'hostname -f' when required,
changing to 'group:user' and adding the /usr/local/ locations for mailman, perl, bash and others to the search path lists
should allow smooth installation on FreeBSD obsoleting my posted How-To, well, except for the required pkgs list perhaps and the automake/conf links.

can the configure script take a --prefix option ?

Rick Paquette <bitwit>
Mon 13 Nov 2006 10:29:32 AM UTC, comment #7:

Ok, I'll try to see what the best way to include this howto in the next release (in the package or in recipe on our cookbook).

The part related to chown, I'll fill a bug because actually GNU/linux supports both user:group and user.group, so if user:group is more portable, why would we bother with user.group.

Mathieu Roy <yeupou>
Project Administrator
Fri 03 Nov 2006 04:09:19 AM UTC, comment #6:

Ok so everyone has to be a noob at everything once, the diff is pointless because the changes are trivial.
Attaching a doc that describes the changes I made to files and locations and the pkgs needed to run Savane-2.0 on FreeBSD 6.1

I have started the base of a FreeBSD pkg,
cd /usr/local/ and extract this archive...
http://www.digilanti.org/FreeBSD-6.1-R_Savane-2.0.tar.bz2
grab the FreeBSD-Savane-HOW-TO below and read it first.

Rick Paquette <bitwit>
Wed 01 Nov 2006 02:52:05 PM UTC, comment #5:

bsd-savane-2.0.diff looks better, yes, deffinately, oops

Rick Paquette <bitwit>
Wed 01 Nov 2006 02:48:35 PM UTC, comment #4:

uhm that doesn't look right, sorry I'm not terribly familiar with making a diff patch

Rick Paquette <bitwit>
Wed 01 Nov 2006 02:42:43 PM UTC, comment #3:

uploaded the uncomp text vers, seems ok, must be something up with gzip on amd64 ?

Rick Paquette <bitwit>
Wed 01 Nov 2006 02:34:19 PM UTC, comment #2:

hm, gzipped it on amd64, its small , 66 lines, I'll just post/paste it here, if i can
-----------------------cut---------------------
diff -rEwBn bsd-savane/backend/darwin/useradd savane-2.0/backend/darwin/useradd
d133 1
a133 1
/usr/sbin/chown "$UserID.$GroupID" "$home"
d137 1
a137 1
/usr/sbin/chown "$UserID.$GroupID" "$home"
diff -rEwBn bsd-savane/backend/download/sv_gpgcheckfiles.pl savane-2.0/backend/download/sv_gpgcheckfiles.pl
d686 1
a686 1
system("chown", "root.root", "-R", $cachedir);
diff -rEwBn bsd-savane/backend/install/sv_update_conf.pl savane-2.0/backend/install/sv_update_conf.pl
d129 1
a129 1
$sys_default_domain = `hostname -f`; chomp($sys_default_domain);
d792 1
a792 1
`chown root.$http_user $conffile_phpcopy $conffile` if $http_user;
Only in savane-2.0: bsd-savane.diff
diff -rEwBn bsd-savane/configure savane-2.0/configure
d81 1
a81 1
MM_PATH="/usr/lib/cgi-bin/mailman/listinfo /usr/local/lib/cgi-bin/mailman/listinfo /var/mailman/cgi-bin/listinfo /usr/var/mailman/cgi-bin/listinfo"
d118 3
d139 1
a139 1
if [ "$SV_CONF_INTERACTIVE" = "" ]; then SV_CONF_INTERACTIVE=yes ; fi
diff -rEwBn bsd-savane/debian/savane-backend-config.postinst savane-2.0/debian/savane-backend-config.postinst
d16 1
a16 1
chomp(my $hostname = `hostname -f`);
diff -rEwBn bsd-savane/debian/savane-backend-export.postinst savane-2.0/debian/savane-backend-export.postinst
d6 1
a6 1
system("chown", "root.root", $xmldir);
diff -rEwBn bsd-savane/debian/savane-lib.postinst savane-2.0/debian/savane-lib.postinst
d6 1
a6 1
system("chown", "root.root", $locksdir);
diff -rEwBn bsd-savane/frontend/php/include/account.php savane-2.0/frontend/php/include/account.php
d67 1
a67 1
# to things like `chown user.group`)
diff -rEwBn bsd-savane/lib/Savane/Cvs.pm savane-2.0/lib/Savane/Cvs.pm
d135 2
a136 1
system("chown", "root.adm", "$dir_cvs/CVSROOT", "-R");
diff -rEwBn bsd-savane/lib/Savane/Download.pm savane-2.0/lib/Savane/Download.pm
d77 1
a77 1
system('/bin/chown', "gatekpr.$name", $dir_public);
d87 1
a87 1
system ('/bin/chown', 'upload.gatekpr', $dir_upload);
d100 2
a101 2
system ('/bin/chown', 'gatekpr.gatekpr', $dir_ftpin);
system ('/bin/chown', 'gatekpr.gatekpr', $dir_ftpout);
diff -rEwBn bsd-savane/Makefile.in savane-2.0/Makefile.in
d1 1
a1 1
BASE_CONF_COMMAND=backend/install/sv_update_conf.pl --recreate --http-user=$(WWW_SERVER_USER) --confdir=$(SV_CONF) --default-domain=`hostname -f` --www-topdir=`pwd`/frontend/php --url-topdir=$(SV_URLROOT) --incdir=\$$sys_www_topdir/../../etc/site-specific-content
diff -rEwBn bsd-savane/www/include/account.php savane-2.0/www/include/account.php
d67 1
a67 1
# to things like `chown user.group`)
-----------------------cut---------------------
yep

Rick Paquette <bitwit>
Wed 01 Nov 2006 02:27:51 PM UTC, comment #1:

Hello,

For some reason, patch returns
"patch: **** Only garbage was found in the patch input."

Any idea?

Mathieu Roy <yeupou>
Project Administrator
Wed 01 Nov 2006 02:18:33 PM UTC, original submission:

This just gets it to compile and install/run provided all the required pkgs are installed and available (still needs some manual tweaking).
I haven't done any further testing than getting to the initial admin login "create first account" page.

Rick Paquette <bitwit>

 

Attached Files
file #1462:  FreeBSD-Savane-HOW-TO added by bitwit (9kB - text/plain - FreeBSD-Savane-HOW-TO)
file #1460:  bsd-savane-2.0.diff added by bitwit (4kB - text/x-diff)
file #1459:  bsd-savane.diff added by bitwit (2kB - text/x-diff)
file #1458:  bsd-savane.diff.gz added by bitwit (908B - application/x-gzip - FreeBSD patch for savane 2.0)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by yeupou (Updated the item)
  • -unavailable- added by bitwit (FreeBSD patch for savane 2.0)
  • -unavailable- added by bitwit (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 10 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 13 Nov 2006 10:29:32 AM UTCyeupouStatusNeed Info=>Confirmed
      SummaryFreeBSD patch for savane 2.0=>FreeBSD Howto for savane 2.0
      Open/Closed-Automatic update due to transitions settings-=>Open
    Fri 03 Nov 2006 04:09:19 AM UTCbitwitAttached File-=>Added FreeBSD-Savane-HOW-TO, #1462
    Wed 01 Nov 2006 02:50:17 PM UTCbitwitAttached File-=>Added bsd-savane-2.0.diff, #1460
    Wed 01 Nov 2006 02:36:42 PM UTCbitwitAttached File-=>Added bsd-savane.diff, #1459
    Wed 01 Nov 2006 02:27:51 PM UTCyeupouStatusNone=>Need Info
      Release1=>2.0
    Wed 01 Nov 2006 02:18:33 PM UTCbitwitAttached File-=>Added bsd-savane.diff.gz, #1458
      Carbon-Copy-=>Added bitwit
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup