You are not logged in.
Pages: 1
Hi,
i had some troubles with webmin on archlinux, because the official repo is outdated and webmin does not support archlinux officially.
So, here an updated "source" for archlinux.
i hope someone will update the official repo
For those who are using samba, apache, ssh etc..(like me), just install them BEFORE. This pkg will fix samba!
If you cannot install the pkg, remove webmin (pacman -R webmin), delete the folder /etc/webmin and install the pkg.
https://github.com/kylon/webmin-archlinux
regards, kylon
Offline
Welcome to Arch. Your forum post is likely not to get to the people who matter in this case, i.e. the package maintainer. I suggest that you open a flyspray against the webmin package to inform him of your code.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Um, can you explain me how?
thanks
Offline
Offline
ok, i hope i did this correctly
https://bugs.archlinux.org/task/38718?p … &sort2=asc
Offline
You can't update the PKGBUILD yourself, it has to be done by an Arch Linux developer.
Why use $pkgname-$pkgver.tar.gz in the source array?
Last edited by karol (2014-01-29 21:53:35)
Offline
You don't need to worry about the actual update. At least the ticket will get into the hands of the TU or dev in a position to accept or deny the request. Better than a forum post
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
You can't update the PKGBUILD yourself, it has to be done by an Arch Linux developer.
Why use $pkgname-$pkgver.tar.gz in the source array?
Uh? Why?
it was already there, the only difference is that now i m using a local tar.gz(because there s no new version on the webmin site).
Offline
karol wrote:You can't update the PKGBUILD yourself, it has to be done by an Arch Linux developer.
Uh? Why?
I was referring to what you wrote in the bug report:
i would like to update the pkgbuild to download the latest version from github when you build the pkg. I only need some free time
This package is maintained by an Arch developer and he's maintaining the PKGBUILD used by Arch Linux users on Arch server.
Obviously you can edit it, change the configure options and whatnot, but you can't be the official maintainer of an Arch Linux package w/o being at least a TU https://wiki.archlinux.org/index.php/TU
i m using a local tar.gz(because there s no new version on the webmin site).
Where can I get this new version of webmin source? Did you change the source code of webmin at all?
If you just want a "bigger number" to make sure it's the latest version, user the release number, don't touch the version number: https://wiki.archlinux.org/index.php/Pkgbuild#pkgver
Offline
Actually, there is a new version on the webmin site - 1.670, which was released just over a fortnight ago. In fact, this is the reason why webmin has been flagged out of date, as our current package is still version 1.660.
Have you tried packaging 1.670, and if so, does it solve any of the undefined problems that you've been having?
Also, if you're packaging the latest git version of anything, the convention is to put that in the package name, so you should call your package webmin-git. You should also include the git checkout in the PKGBUILD, as described in various man and wiki pages.
Last edited by tomk (2014-01-30 12:07:19)
Offline
Um, i ll pass
I downloaded it from github. You don t need to edit the source because the git version is working good.
You only need to build the pkg because if you install it from the source it will not find the servers.
The problem is that when you install it from a pkg you cannot update it, you need a new pkg.The current version is 1,672 but the source and the site are 1.670. The git version is a step ahead so i renamed it.
I ll use "git - date" when the pkgbuild will download the source from github
Last edited by kylon (2014-01-30 12:09:56)
Offline
Um, i ll pass
Uhmm... ok then
I downloaded it from github
And as I already said, you should be doing that in the PKGBUILD.
You don t need to edit the source because the git version is working good.
You only need to build the pkg because if you install it from the source it will not find the servers.
Very unclear. You are installing it from source, aren't you?
The problem is that when you install it from a pkg you cannot update it, you need a new pkg.
That is not a problem - that is simply how a distro based on compiled packages, such as Arch, works.
The current version is 1,672
Not sure which version you're talking about, but the current upstream Webmin release is 1.670, as announced on webmin.com on January 13th last.
The git version is a step ahead so i renamed it.
And as I pointed out, you did so incorrectly - you should have renamed it to 'webmin-git' and followed the procedures for packaging from upstream git repos.
Anyway, good luck - I'll leave you to it.
Last edited by tomk (2014-01-30 12:37:09)
Offline
The pkg as an install script which makes the required changes to make it fully working.
If you install the ver 1.670 it will ask you to update.
Yea i know, i did it quickly
Offline
What happens if you keep the pkgver as 1.670 and change pkgrel to 2?
Last edited by karol (2014-01-30 13:12:59)
Offline
It asks you to update, and it s a bit annoying
Offline
It asks you to update, and it s a bit annoying
Please post the output of 'pacman -Syu' from a system where you have your webmin 1.670-2 installed.
Offline
My version is greater than the one in the server
Offline
kylon, you're teasing us. You're posting bits of information instead of the whole thing.
First you said "It asks you to update,", then "My version is greater than the one in the server". Do you mean that pacman warns you that your local version is higher than the one in the [extra] repo? Is it forcing you to downgrade webmin?
Offline
Yea, and no, it does not ask me to downgrade
Offline
updated.
better now?
Offline
I'm not sure if e,g, 'rm -r /etc/webmin' in pre_remove() is OK.
Please don't force
# Do a clean up first
rm -rf pkg
rm -rf src
rm -f webmin*pkg.tar*
on me and at least comment it out by default.
==> Validating source files with md5sums...
webmin-config.tar.bz2 ... Passed
webmin-pacman.tar.bz2 ... FAILED
webmin.service ... Passed
==> ERROR: One or more files did not pass the validity check!
==> Entering fakeroot environment...
chmod: cannot access ‘/home/karol/test/11/pkg’: No such file or directory
/usr/bin/fakeroot: line 181: 25355 User defined signal 1 FAKEROOTKEY=$FAKEROOTKEY LD_LIBRARY_PATH="$PATHS" LD_PRELOAD="$LIB" "$@"
Last edited by karol (2014-02-02 17:43:00)
Offline
i m not sure the pre_remove is working. anyway i had an install failure sometimes because "the folder etc/webmin already exists"
i m using makepkg --asroot as written in the old pkgbuild, it s working
Offline
Hi,
Using the up to date version of webmin. 1.680
I am trying to install a custom module from a local file or uploaded file.
Its the samba module modified with various samba-tool methods for samba4.
I am just getting an error the connection was reset and not much in the logs.
Just wondered if anybody has had this and there is a quick fix.
I will try and find some log info so we have something to go on.
/var/log/webmin/miniserv.error
[21/Apr/2014:07:51:28 +0100] [192.168.1.2] /webmin/install_mod.cgi : File not found
Its true it isn't and not sure how to get it back.
Going to run a debian version and just copy that script.
install_mod.cgi
#!/usr/bin/perl
# install_mod.cgi
# Download and install a webmin module
require './webmin-lib.pl';
if ($ENV{REQUEST_METHOD} eq "POST") { &ReadParseMime(); }
else { &ReadParse(); $no_upload = 1; }
$| = 1;
$theme_no_table = 1 if ($in{'source'} == 2 || $in{'source'} == 4);
&ui_print_header(undef, $text{'install_title'}, "");
if ($in{'source'} == 0) {
# from local file
&error_setup(&text('install_err1', $in{'file'}));
$file = $in{'file'};
if (!(-r $file)) { &inst_error($text{'install_efile'}); }
}
elsif ($in{'source'} == 1) {
# from uploaded file
&error_setup($text{'install_err2'});
$need_unlink = 1;
if ($no_upload) {
&inst_error($text{'install_ebrowser'});
}
$file = &transname(&file_basename($in{'upload_filename'}));
open(MOD, ">$file");
binmode(MOD);
print MOD $in{'upload'};
close(MOD);
}
elsif ($in{'source'} == 2 || $in{'source'} == 4) {
# from ftp or http url (possible third-party)
$url = $in{'source'} == 2 ? $in{'url'} : $in{'third'};
&error_setup(&text('install_err3', $url));
$file = &transname(&file_basename($url));
$need_unlink = 1;
my $error;
$progress_callback_url = $url;
if ($url =~ /^(http|https):\/\/([^\/]+)(\/.*)$/) {
$ssl = $1 eq 'https';
$host = $2; $page = $3; $port = $ssl ? 443 : 80;
if ($host =~ /^(.*):(\d+)$/) { $host = $1; $port = $2; }
&http_download($host, $port, $page, $file, \$error,
\&progress_callback, $ssl);
}
elsif ($url =~ /^ftp:\/\/([^\/]+)(:21)?\/(.*)$/) {
$host = $1; $ffile = $3;
&ftp_download($host, $ffile, $file, \$error, \&progress_callback);
}
else { &inst_error($text{'install_eurl'}); }
&inst_error($error) if ($error);
}
elsif ($in{'source'} == 3) {
# from www.webmin.com
&error_setup($text{'install_err4'});
$in{'standard'} =~ /^\S+$/ || &error($text{'install_estandard'});
$need_unlink = 1;
my $error;
# Find the URL of the package
$mods = &list_standard_modules();
ref($mods) || &error(&text('standard_failed', $error));
local ($info) = grep { $_->[0] eq $in{'standard'} } @$mods;
$info || &error($text{'install_emissing'});
if ($config{'standard_url'}) {
($host, $port, $page, $ssl) = &parse_http_url(
$config{'standard_url'});
$host || &error($text{'standard_eurl'});
}
else {
($host, $port, $page, $ssl) = ($standard_host, $standard_port,
$standard_page, $standard_ssl);
}
($host, $port, $page, $ssl) = &parse_http_url(
$info->[2], $host, $port, $page, $ssl);
$progress_callback_url = $info->[2];
$file = &transname($info->[2]);
&http_download($host, $port, $page, $file, \$error,
\&progress_callback, $ssl);
&inst_error($error) if ($error);
}
# Install the module(s)
$rv = &install_webmin_module($file, $need_unlink, $in{'nodeps'},
$in{'grant'} ? undef : [ split(/\s+/, $in{'grantto'}) ]);
if (ref($rv)) {
@mdescs = @{$rv->[0]};
@mdirs = @{$rv->[1]};
@msizes = @{$rv->[2]};
}
else {
&inst_error($rv);
}
# Display something nice for the user
&read_file("$config_directory/webmin.catnames", \%catnames);
print "$text{'install_desc'} <p>\n";
print "<ul>\n";
for($i=0; $i<@mdescs; $i++) {
$mdirs[$i] =~ /\/([^\/]+)$/;
if (%minfo = &get_module_info($1)) {
# Installed a module
my $cat = $catnames{$minfo{'category'}};
$cat = $text{"category_".$minfo{'category'}} if (!$cat);
$cat = $text{"category_"} if (!$cat);
print &text($minfo{'hidden'} ? 'install_line3' :
'install_line2', "<b>$mdescs[$i]</b>",
"<tt>$mdirs[$i]</tt>", $msizes[$i], $cat,
"../$minfo{'dir'}/"),
"<br>\n";
}
elsif (%tinfo = &get_theme_info($1)) {
# Installed a theme
print &text('themes_line', "<b>$mdescs[$i]</b>",
"<tt>$mdirs[$i]</tt>", $msizes[$i]),
"<br>\n";
}
}
print "</ul><p>\n";
if (defined(&theme_post_change_modules)) {
&theme_post_change_modules();
}
&ui_print_footer("edit_mods.cgi?mode=install", $text{'mods_return'},
"", $text{'index_return'});
sub inst_error
{
print "<b>$main::whatfailed : $_[0]</b> <p>\n";
&ui_print_footer("", $text{'index_return'});
exit;
}
Last edited by stuartiannaylor (2014-04-21 11:52:50)
Offline
Pages: 1