Browse Source

Alejandro Mery:


			
			
				rocklinux
			
			
		
Alejandro Mery 22 years ago
parent
commit
981edf0b9b
6 changed files with 131 additions and 0 deletions
  1. +3
    -0
      Documentation/Developers/REGISTER
  2. +43
    -0
      package/mnemoc/ipsvd/patches/twoftpd.diff
  3. +1
    -0
      package/mnemoc/ipsvd/pkg_twoftpd_pre.conf
  4. +3
    -0
      package/mnemoc/twoftpd/postsysfiles.in
  5. +32
    -0
      package/mnemoc/twoftpd/twoftpd.conf
  6. +49
    -0
      package/mnemoc/twoftpd/twoftpd.desc

+ 3
- 0
Documentation/Developers/REGISTER

@ -14,6 +14,9 @@ Reserved User and Group IDs:
mail 8
log 9
- ftp users: - ftp groups:
ftp 13 ftp 13
- uucp users: - uucp groups:
uucp 14 uucp 14

+ 43
- 0
package/mnemoc/ipsvd/patches/twoftpd.diff

@ -0,0 +1,43 @@
--- ./twoftpd-anon-conf.c.orig 2004-05-10 11:00:38.000000000 -0400
+++ ./twoftpd-anon-conf.c 2004-05-10 11:06:23.000000000 -0400
@@ -92,15 +92,15 @@
"exec 2>&1\n"
"umask 022\n"
"exec \\\n"
- "tcpserver -DRHv -llocalhost ", ip, " 21 \\\n"
+ "tcpsvd -vv -llocalhost ", ip, " 21 \\\n"
"softlimit -m 2000000 \\\n"
"envdir ", maindir, "/env \\\n",
conf_bin, "/twoftpd-anon");
make_file("log/run", 0755,
"#!/bin/sh\n"
"exec \\\n"
- "setuidgid ", logname, " \\\n"
- "multilog t ", logdir, 0, 0, 0);
+ "svlogd -u ", logname, " \\\n"
+ "-t ", logdir, 0, 0, 0);
make_fileu("env/CHROOT", 1);
make_fileu("env/GID", ftpgid);
make_file("env/HOME", 0644, ftpdir, 0, 0, 0, 0, 0, 0);
--- ./twoftpd-conf.c.orig 2004-05-10 11:00:38.000000000 -0400
+++ ./twoftpd-conf.c 2004-05-10 11:05:28.000000000 -0400
@@ -84,7 +84,7 @@
"exec 2>&1\n"
"umask 022\n"
"exec \\\n"
- "tcpserver -DRHv -llocalhost ", ip, " 21 \\\n"
+ "tcpsvd -vv -llocalhost ", ip, " 21 \\\n"
"envdir ", maindir, "/env \\\n");
obuf_put7s(&conf_out,
"softlimit -m 2000000 \\\n",
@@ -96,8 +96,8 @@
make_file("log/run", 0755,
"#!/bin/sh\n"
"exec \\\n"
- "setuidgid ", logacct->pw_name, " \\\n"
- "multilog t ", logdir, 0, 0, 0);
+ "svlogd -u ", logacct->pw_name, " \\\n"
+ "-t ", logdir, 0, 0, 0);
if (dochroot) make_fileu("env/CHROOT", 1);

+ 1
- 0
package/mnemoc/ipsvd/pkg_twoftpd_pre.conf

@ -0,0 +1 @@
var_append patchfiles ' ' $base/package/mnemoc/ipsvd/patches/twoftpd.diff

+ 3
- 0
package/mnemoc/twoftpd/postsysfiles.in

@ -0,0 +1,3 @@
safe_groupadd ftp 13
safe_useradd ftp 13 13 "FTP Server user" /dev/null /bin/true "*"

+ 32
- 0
package/mnemoc/twoftpd/twoftpd.conf

@ -0,0 +1,32 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/mnemoc/twoftpd/twoftpd.conf
# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
pkg_twoftpd_config() {
echo $root/usr/bglibs/include > conf-bgincs
echo $root/usr/bglibs/lib > conf-bglibs
echo $bindir > conf-bin
echo $mandir > conf-man
}
hook_add premake 5 'pkg_twoftpd_config'
makeinstopt=
hook_add postmake 1 './installer'

+ 49
- 0
package/mnemoc/twoftpd/twoftpd.desc

@ -0,0 +1,49 @@
[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN ---
[COPY]
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY] Please add additional copyright information _after_ the line containing
[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
[COPY]
[COPY] ROCK Linux: rock-src/package/mnemoc/twoftpd/twoftpd.desc
[COPY] ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
[COPY]
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; either version 2 of the License, or
[COPY] (at your option) any later version. A copy of the GNU General Public
[COPY] License can be found at Documentation/COPYING.
[COPY]
[COPY] Many people helped and are helping developing ROCK Linux. Please
[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM
[COPY] file for details.
[COPY]
[COPY] --- ROCK-COPYRIGHT-NOTE-END ---
[I] Simple secure efficient FTP server
[T] This is twoftpd, a new FTP server that strives to be secure, simple, and
[T] efficient. None of the commands can cause execution of other programs,
[T] and the normal model of execution does a chroot to the logged in user's
[T] directory immediately after authentication.
[T]
[T] The name "twoftpd" comes from the fact that there were two parts to the
[T] server -- an authenticating front end, which contains no file or data
[T] transfer code, and a back end, which contains all the data transfer
[T] code.
[U] http://untroubled.org/twoftpd/
[A] Bruce Guenter <bruceg@em.ca>
[M] Alejandro Mery <amery@geeks.cl>
[C] extra/server
[L] GPL
[S] Stable
[V] 1.17
[P] X -----5---9 810.000
[D] 1049687948 twoftpd-1.17.tar.gz http://untroubled.org/twoftpd/

Loading…
Cancel
Save