Skip to content

Commit

Permalink
chg: few details in cfg/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
silv3rr committed Jan 25, 2020
1 parent 1b53ac4 commit ba00ab7
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 12 deletions.
34 changes: 28 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,54 @@
# foo-tools updates
# foo-tools

## Updates:

This is an updated version of foo-tools:

- updates/fixes from https://github.com/glftpd/foo-tools
- Makefiles updated
- foo-pre has mp3 genre in PRE line (no module needed)
- added date/time in foo-pre.log
- added mod_audiosort

For more details see [CHANGELOG](src/CHANGES)

## Documentation:

- [README.1st](README.1st) Original README file
- [src/CHANGES](src/CHANGES) CHANGELOG
- [src/README.1st](src/README.1st) Building instructions
- [doc/HOWTO](doc/HOWTO) Notes about compiling
- [doc](doc) Documentation on installing/running the programs
- [README.mp3genre](src/pre/README.mp3genre) mp3genre specific README (install/configure)

### mp3genre:

mp3genre for foo-pre; adds mp3 genre in PRE output without module

check README on how to install/configure

### Modules:
- [src/pre/modules/README.mod_audiosort](README.mod_audiosort)
- [src/pre/modules/README.mod_chmod](README.mod_chmod)
- [src/pre/modules/README.mod_idmp3](README.mod_idmp3)
- [src/pre/modules/README.mod_nfohandler](README.mod_nfohandler)
- [src/pre/modules/README.mod_sitenfoadd](README.mod_sitenfoadd)

Addons for foo-pre; modules add functions but are not build into foo-pre binary

- [src/pre/README.modules](src/pre/README.modules)
- [src/pre/modules/README.mod_audiosort](src/pre/modules/README.mod_audiosort)
- [src/pre/modules/README.mod_chmod](src/pre/modules/README.mod_chmod)
- [src/pre/modules/README.mod_idmp3](src/pre/modules/README.mod_idmp3)
- [src/pre/modules/README.mod_nfohandler](src/pre/modules/README.mod_nfohandler)
- [src/pre/modules/README.mod_sitenfoadd](src/pre/modules/README.mod_sitenfoadd)
- [src/pre/modules/README.mod_symlink](src/pre/modules/README.mod_symlink)

## TODO:

### foo-pre

- [ ] replace pre/mp3genre by pzs-ng code or other id3 lib instead
- [ ] FLAC support?
- [X] [#5](https://github.com/glftpd/foo-tools/issues/5) add option to force using mv external
- [X] add audiosort after pre

### spy

- [X] look into libhttpd.h since it's LGPL now (http://www.hughes.com.au/products/libhttpd)

25 changes: 25 additions & 0 deletions src/pre/modules/README.mod_symlink
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

What is mod_symlink ?
------------------------

Creates symlink to pre release dir(?)

Installing
----------

When you run 'make' from the modules dir it should be build. If you
want to build only this module, then run 'make mod_symlink.so'.

When build, copy mod_symlink.so to /glftpd/bin/premodules/ and
add it to your pre.cfg like

modules=/bin/premodules/mod_other.so|/bin/premodules/mod_symlink.so

Once you have this done, you need to add configuration of the module
to pre.cfg.

symlink_in=

Please take a look at the included pre.cfg for examples, since it
explains better than what I can do here right now :-).

11 changes: 5 additions & 6 deletions src/pre/pre.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ section.utils.gl_stat_section=0
# Porn section, dont give stats, and give credits in glftpd section '1'.
#
section.vcd.name=Porn
sectoin.vcd.dir=/site/xxx
section.vcd.dir=/site/xxx
section.movies.gl_credit_section=1
section.movies.gl_stat_section=NONE

Expand Down Expand Up @@ -193,7 +193,6 @@ text.tail=file:/ftp-data/misc/pre-tail.txt
# you must have 'mv' in /bin. %S = sourcepath, %D = destinationpath.
#
move.external=/bin/mv %S %D

# force always using external move (1 = yes, 0 = no)
move.force.ext=0

Expand All @@ -203,7 +202,6 @@ move.force.ext=0
# look at the README.* files in the src/pre/modules/ catalog for
# information on how to build these.
#modules=/bin/premodules/mod_idmp3.so|/bin/premodules/mod_sitenfoadd.so|/bin/premodules/mod_nfohandler.so|/bin/premodules/mod_audiosort.so
modules=mod_audiosort.so

#
# examples of things to extract from an .nfo using regexps.
Expand Down Expand Up @@ -240,9 +238,9 @@ modules=mod_audiosort.so
#
# properties for audiosort module.
#
mod_audiosort.bin=/bin/audiosort
#mod_audiosort.bin=/bin/audiosort
# enable audiosort in these sections
mod_audiosort.sections=flac|mp3
#mod_audiosort.sections=flac|mp3

#
# set etcdir, if your passwd and group are not in /etc, then set this.
Expand All @@ -253,5 +251,6 @@ mod_audiosort.sections=flac|mp3
# Add mp3 genre to gllog (1 = yes, 0 = no)
#
# This adds mp3 genre from id3 tag to PRE: announce (using "%I" macro).
# Check pre/README.mp3genre for more info.
#
addmp3genretogllog=1
addmp3genretogllog=0

0 comments on commit ba00ab7

Please sign in to comment.