Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need help creating ebuild for "lurker"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
geowapa
n00b
n00b


Joined: 08 Sep 2004
Posts: 50

PostPosted: Sat Sep 25, 2004 11:29 pm    Post subject: Need help creating ebuild for "lurker" Reply with quote

I'm trying to create an ebuild for the e-mail list archiver package called lurker - http://lurker.sourceforge.net/. I've searched the bugs list and breakmygentoo sites and have not found any hint that anyone might be working on this.

I've managed to get the ebuild to work and install the package, but I ran into a couple of issues.

- It depends upon mimelib which comes with kde-pim. But kde doesn't link the libmimelib.so file into /usr/lib, and lurker's 'configure' couldn't find it. I finally made a symbolic link into /usr/lib from /usr/kde/3.3/lib/libmimelib.so, but I'm sure that this is the wrong way to fix this. I doubt that I should have the lurker ebuild create that link. Any suggestions for a more correct way?

- kde-pim is a really big install, to just get the mime library. Lurker also has a version of mimelib in the lurker project on sourceforge for anyone without KDE. I expect that the better soution would be to have the ebuild use kde-pim if it is present, and download the standalone mimelib if kde-pim is not there. But I'm not sure how I should accomplish this. I assume that I should create a separate ebuild for the standalone mimelib? The ebuild would then require either mimelib or kde-pim?

Thanks,
George
Back to top
View user's profile Send private message
Duck-Billed Platypus
Guru
Guru


Joined: 30 Jun 2003
Posts: 576
Location: Los Angeles, California, United States of America

PostPosted: Sun Sep 26, 2004 3:16 am    Post subject: Reply with quote

I don't know how to write ebuilds, though...

You might want to do something like if USE=kde then use the lib with kde-pim else download lib from sourceforge. I think the linking would be fine.
_________________
Dentists are evil.
Back to top
View user's profile Send private message
geowapa
n00b
n00b


Joined: 08 Sep 2004
Posts: 50

PostPosted: Sun Sep 26, 2004 1:37 pm    Post subject: Reply with quote

Thanks for the suggestions. The reason that I don't think that the link would be right is that because any updates to kde-pim wouldn't know to maintain the link in /usr/lib. I assume that the reason the kde ebuild doesn't lnk librarys into /usr/lib is so that multiple versions of KDE can coexist.
Back to top
View user's profile Send private message
daved
n00b
n00b


Joined: 04 Jul 2002
Posts: 4
Location: Seattle, WA

PostPosted: Mon Sep 27, 2004 11:15 pm    Post subject: Reply with quote

Hello,

You can actually download mimelib from http://sourceforge.net/project/showfiles.php?group_id=8168 and instruct Lurker to compile it and statically link to it (./configure --with-mimelib-local).

Hope this helps,

DaveD
_________________
---
DaveD - http://dave.firebin.net
- http://humidor.firebin.net
Back to top
View user's profile Send private message
geowapa
n00b
n00b


Joined: 08 Sep 2004
Posts: 50

PostPosted: Wed Sep 29, 2004 2:30 am    Post subject: Reply with quote

Hi Daved,

I was aware of the lurker version of mimelib, and considering the size of kde-pim, you may have the better alternative. Do you have any suggestions on how to get the ebuild to download the mimelib source? I tried adding a second file to the SRC_URI line:

SRC_URI="mirror://sourceforge/lurker/${P}.tar.gz mirror://sourceforge/lurker/mimelib-3.3.1.tar.gz"

But that seems to break things. And I can't see how to link the mimelib version into the lurker ebuild. The lurker source version is inherited from the ebuild name, but the mimelib version doesnt' track the lurker version. I suspect that I need a separate ebuild for mimelib, but mimelib is not the project name on sourceforge (There is a mimelib python project with no files)

Any suggestions on how to approach the ebuilds? I guess that I'm a bit over my head.

George
Back to top
View user's profile Send private message
geowapa
n00b
n00b


Joined: 08 Sep 2004
Posts: 50

PostPosted: Sat Oct 02, 2004 11:42 pm    Post subject: Reply with quote

I'm getting closer, but I'm really stumped on how to prep for the webapps. The app builds and installs, but it leaves everthing installed under the /var/tmp/portage/lurker-1.2/image/usr/share/webapps ... directory instead of copying things into the /usr/share/webapps directory where webapp-config can find it.

My src_compile section seems to work fine...

src_compile() {
econf \
--prefix=${INSTALLDIR} \
--with-mimelib-local \
|| die "configure failed"

emake || die "make failed"
}

I expect that somehow in the src_install section I need to move files into the correct locations for webapps-config. But a few hours of attempts is not getting me anywhere. I've looked at lots of ebuilds, and I have not found a good example that would work as a model.

The default install builds the following structures. (And I assume I need to move them somehow? I've included my assumption on preferred location ?)

/usr/local/lib/cgi-bin/*.cgi
- The CGIs which power lurker
- These must be placed such that the webserver can run them
( Move to /usr/share/webapps/lurker/1.2/hostroot/cgi-bin ... ??? )

/usr/local/var/www/lurker/*
- The lurker content which must be web accessible
- The subdirectories "attach, list, mbox, message, mindex,
search, splash, and thread" must all be writeable by
whatever user executes lurker.cgi
(Move to /usr/share/webapps/lurker/1.2/htdocs/* ???)

/usr/local/bin/lurker-*
- Command-line utilities for importing email, cleaning
cached web files, and interfacing with shell scripts
(Move to /usr/bin ???)

/usr/local/var/lib/lurker/*
- The lurker database directory where mail is imported to
- The directory and its contents must be writeable by the
user who runs lurker-index
- This must be readable by the user who runs lurker.cgi
(Not sure where to put application database for the vhost ???)

/usr/local/etc/lurker.conf
(Move to /usr/share/webapps/lurker/1.2/conf/lurker.conf ?)

Anyone have suggestions on how to accomplish this? every example does it a bit differently and so far all my attempts have failed. They all seem to leave /usr/share/webapps directory untouched.

Thanks,
George
Back to top
View user's profile Send private message
geowapa
n00b
n00b


Joined: 08 Sep 2004
Posts: 50

PostPosted: Sun Oct 03, 2004 12:28 am    Post subject: Reply with quote

Ahhh... answering my own replies - er, talking to myself?

The lurker INSTALL file has some of the default directory names wong... Helps to use the right names.

Finally found a combination that seems to work. I'm all set on the htdocs, cgi-bin, conf file, bin files, etc. Still stumped on where to put the database for a virtual server setup. I assume that each server would need its own copy of /usr/local/var/lib/llurker ...

src_install () {

webapp_src_preinst

dodoc ChangeLog FAQ INSTALL NEWS README AUTHORS COPYING
rm -f ChangeLog FAQ INSTALL NEWS README AUTHORS COPYING

make install DESTDIR=${D} || die

# now, we have to turn this into something that webapp-config can use

mv ${D}/usr/local/lurker/lib/cgi-bin/*.cgi ${D}${MY_CGIBINDIR} || die
rm -rf ${D}/usr/local/lurker/lib/cgi-bin || die

mv ${D}/var/lib/www/lurker/* ${D}${MY_HTDOCSDIR} || die
rm -rf ${D}/var/lib/www/lurker || die

mv ${S}/lurker.conf ${D}${MY_SERVERCONFIGDIR} || die
rm -f ${S}/lurker.conf || die

webapp_serverowned ${MY_CGIBINDIR}
webapp_serverowned ${MY_HTDOCSDIR}

webapp_configfile lurker.conf

webapp_src_install
}

George
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Wed Mar 04, 2015 12:42 pm    Post subject: Reply with quote

I understand this is more than a decade old topic.

However, nothing else on lurker the program could be found on the Forums, and it is not available in portage. (Lots on lurkers the non-poster members of the Forums...)

geowapa the OP is not a member anymore.

But this problem seems to me that it still applies, or am I mistaken.

webapp-config is still there, mimelib is still there available for separate download, et cetera.

Anybody got a working lurker ebuild somewhere?

Or any ideas about the installing of lurker in other ways?

Thanks!
Back to top
View user's profile Send private message
steveL
Advocate
Advocate


Joined: 13 Sep 2006
Posts: 4631
Location: The Peanut Gallery

PostPosted: Wed Mar 04, 2015 1:15 pm    Post subject: Reply with quote

miroR: just write an ebuild. This was my first one (see posts 2 and 3 for more general info.)

I wrote that without knowing about /usr/portage/skel.ebuild so it's perfectly feasible to write ebuilds from just the manual.

#gentoo-dev-help on IRC: chat.freenode.net is full of people who will help; you'll also find knowledgeable users in #gentoo-chat quite a few of whom knock out ebuilds w/e they need to.

Best channels for actual tools: #bash (essential since all ebuilds are bash scriptlets) and ##workingset (toolchain, make, autotools, cmake et al.)
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Wed Mar 04, 2015 3:08 pm    Post subject: Reply with quote

I'll first have a look at your first ebuild, for pure pleasure! :-)
And then I'll analyze your advice, which is kind as most of the times.
But you know I might not make it, unless I find a lot of time...
Also, other things may come in my way: such as my spurn that I developed of Firefox (for completely warranted reasons just one of many case studies here), and currently only able to use dillo and lynx...
I mean dillo and lynx is not sufficient for irc, I'm afraid...
Trying installing netsurf, failed...
So I'm battling of a few fronts to get that accomplished.
So... this might take me time.
Thanks, steveL!
Back to top
View user's profile Send private message
steveL
Advocate
Advocate


Joined: 13 Sep 2006
Posts: 4631
Location: The Peanut Gallery

PostPosted: Wed Mar 04, 2015 7:28 pm    Post subject: Reply with quote

miroR wrote:
I mean dillo and lynx is not sufficient for irc, I'm afraid...
Trying installing netsurf, failed...
So I'm battling of a few fronts to get that accomplished.

Most people use net-irc/irssi for command-line/console irc; I've used bitchx before as well, and keep weechat around for emergencies.
Code:
$ grep -F IRC ~/.bashrc
# console IRC (weechat, irssi)
export IRCNICK=igli
export IRCNAME='Full Name'
export IRCUSER=login
export IRCHOST=some-domain.org

Though I generally stick to konversation under KDE, I might switch to quassel if it becomes impossible to
run konvi without semantic-craptop.
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Thu Mar 05, 2015 9:53 am    Post subject: Reply with quote

steveL wrote:
miroR wrote:
I mean dillo and lynx is not sufficient for irc, I'm afraid...
Trying installing netsurf, failed...
So I'm battling of a few fronts to get that accomplished.

Most people use net-irc/irssi for command-line/console irc; I've used bitchx before as well, and keep weechat around for emergencies.
Code:
$ grep -F IRC ~/.bashrc
# console IRC (weechat, irssi)
export IRCNICK=igli
export IRCNAME='Full Name'
export IRCUSER=login
export IRCHOST=some-domain.org

Though I generally stick to konversation under KDE, I might switch to quassel if it becomes impossible to
run konvi without semantic-craptop.

Thanx for the advice. I'll study it.
Currently busy on this topic where I profusely cited you:
Updating and keeping your Gentoo non-poeterized
https://forums.gentoo.org/viewtopic-t-1012022.html
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Thu Sep 03, 2015 9:48 pm    Post subject: Reply with quote

I've installed lurker. A working lurker.

Surely, the mimelib firtst, and only then lurker.

But none of it is in portage (lurker removed in 2009, see in /usr/portage/profiles I think). And it's so much nicer than mailman! Have a look at the Devuan mailing list:

https://lists.dyne.org/lurker/list/dng.en.html

And I have not made ebuilds. Not yet.

I will, when I learn the intricacies of portage, meaning, if I progress at the current pace, in a few yrs ;-)

God! How long this took me! But ennough talk.

The method used, is my no-portage method, for now. Analyze and you'll see why: already complex by itself.

Now I go a little cryptic (here, not in links), I'm afraid, but, from this point on, it's, maybe, which some prefer, relatively concise.

The url to get the sources:

http://packages.ubuntu.com/precise/libmimelib1-dev

https://packages.debian.org/jessie/libmimelib1c2a

https://packages.debian.org/jessie/lurker

E. g.:

Code:

$ wget -nc \
http://http.debian.net/debian/pool/main/m/mimelib1/mimelib1_1.1.4-2.diff.gz \
http://http.debian.net/debian/pool/main/m/mimelib1/mimelib1_1.1.4.orig.tar.gz \
http://http.debian.net/debian/pool/main/m/mimelib1/mimelib1_1.1.4-2.dsc
$ wget \
http://http.debian.net/debian/pool/main/l/lurker/lurker_2.3-5.debian.tar.xz \
http://http.debian.net/debian/pool/main/l/lurker/lurker_2.3.orig.tar.gz \
http://http.debian.net/debian/pool/main/l/lurker/lurker_2.3-5.dsc
$


And I'll try to post the paches, and sign them, in the next post.

Code:

mimelib1_1.1.4_configure.in.patch
mimelib1_1.1.4_Makefile.am.patch


mimelib
============================|||


The method,

as per:

Mutt without Portage/in Local Overlay, for Air-Gappers
https://forums.gentoo.org/viewtopic-t-1002146-start-50.html#7779222

And my current,

/var/log/no-portage-keep
contains:
Code:

# ls -l mimelib1_1.1.4_history_150902_101228_gcn
# cat mimelib1_1.1.4_history_150902_101228_gcn
gpg --recv-keys 0xE25F2102
gpg --verify  mimelib1_1.1.4-2.dsc
# and check the sums then...
tar xf mimelib1_1.1.4.orig.tar.gz
gunzip mimelib1_1.1.4-2.diff.gz
patch -p 0 < mimelib1_1.1.4-2.diff
cd mimelib1-1.1.4
patch -p 0 < ../mimelib1_1.1.4_configure.in.patch
patch -p 0 < ../mimelib1_1.1.4_Makefile.am.patch
autoscan |& tee ../mimelib1-1.1.4_autoscan_$(date +%y%m%d_%H%M)
shtoolize -o shtool all
mv -iv configure.in configure.ac
autoheader-2.69 |& tee ../mimelib1-1.1.4_autoheader-2.69_$(date +%y%m%d_%H%M%S)
libtoolize |& tee ../mimelib1-1.1.4_libtoolize_$(date +%y%m%d_%H%M%S)
# This does not put the necessary tab in plac. Need manually fix it.
echo "   ACLOCAL -I m4" >> mimelib/mimelib/Makefile.am
echo "This does not put the necessary tab in plac. Need manually fix it."
read FAKE
aclocal |& tee ../mimelib1-1.1.4_aclocal_$(date +%y%m%d_%H%M%S)
autoconf-2.69 |& tee ../mimelib1-1.1.4_autoconf-2.69_$(date +%y%m%d_%H%M%S)
automake-1.15 --add-missing |& tee ../mimelib1-1.1.4_automake-1.15--add-missing_$(date +%y%m%d_%H%M%S)
aclocal |& tee ../mimelib1-1.1.4_aclocal_$(date +%y%m%d_%H%M%S)
automake-1.15 |& tee ../mimelib1-1.1.4_automake-1.15_$(date +%y%m%d_%H%M%S)
./configure --prefix=/usr --sysconfdir=/etc |& tee ../mimelib1-1.1.4_configure_$(date +%y%m%d_%H%M)
find / -xdev -name '*' > /root/FIND_mutt-1.5.23-dev_$(date +%y%m%d_%H%M)_make_BEFOR.txt
make |& tee ../mimelib1-1.1.4_make_$(date +%y%m%d_%H%M)
find / -xdev -name '*' > /root/FIND_mutt-1.5.23-dev_$(date +%y%m%d_%H%M)_make_AFTER.txt
diff /root/FIND_mutt-1.5.23-dev_*_make_?????.txt
make install |& tee ../mimelib1-1.1.4_make_install_$(date +%y%m%d_%H%M)
find / -xdev -name '*' > /root/FIND_mutt-1.5.23-dev_$(date +%y%m%d_%H%M)_make_install_AFTER.txt
diff /root/FIND_mutt-1.5.23-dev_150902_1341_make_AFTER.txt  /root/FIND_mutt-1.5.23-dev_150902_1343_make_install_AFTER.txt
diff /root/FIND_mutt-1.5.23-dev_150902_1341_make_AFTER.txt  /root/FIND_mutt-1.5.23-dev_150902_1343_make_install_AFTER.txt   | grep '> ' | sed 's/> //' | egrep -v '\/root\/|\/proc\/|\/usr\/local\/src\/'  > /var/log/no-portage/mimelib1-1.1.4_150902_1341_make_install.ls-1

cp -irv mimelib/doc/ /usr/share/doc/mimelib1-1.1.4
find / -xdev -name '*' > /root/FIND_mutt-1.5.23-dev_$(date +%y%m%d_%H%M)_docs_AFTER.txt
diff /var/log/no-portage/mimelib1-1.1.4_150902_1341_make_install.ls-1 /var/log/no-portage/mimelib1-1.1.4_150902_1421_make_install.ls-1

for i in $(ls -1 mimelib1-1.1.4_*|grep -v config.log) ; do ls -l $i ; j=$(echo $i | sed 's/mimelib1-1.1.4_\(.*\)_\(15090[0-9]_[0-9][0-9][0-9][0-9]\)/mimelib1-1.1.4_\2_\1.log/') ; echo ; echo $j ; echo ; echo ; mv -iv  $i $j ;  done ;



Importantly, the list of files installed is, in my

/var/log/no-portage/
Code:

# ls -l mimelib1-1.1.4_150902_1421_make_install.ls-1
# cat mimelib1-1.1.4_150902_1421_make_install.ls-1
/usr/share/doc/mimelib1-1.1.4
/usr/share/doc/mimelib1-1.1.4/binhex.html
/usr/share/doc/mimelib1-1.1.4/message.html
/usr/share/doc/mimelib1-1.1.4/address.html
/usr/share/doc/mimelib1-1.1.4/pop.html
/usr/share/doc/mimelib1-1.1.4/entity.html
/usr/share/doc/mimelib1-1.1.4/field.html
/usr/share/doc/mimelib1-1.1.4/datetime.html
/usr/share/doc/mimelib1-1.1.4/mboxlist.html
/usr/share/doc/mimelib1-1.1.4/bodypart.html
/usr/share/doc/mimelib1-1.1.4/mediatyp.html
/usr/share/doc/mimelib1-1.1.4/msgid.html
/usr/share/doc/mimelib1-1.1.4/text.html
/usr/share/doc/mimelib1-1.1.4/mailbox.html
/usr/share/doc/mimelib1-1.1.4/mechansm.html
/usr/share/doc/mimelib1-1.1.4/boyermor.html
/usr/share/doc/mimelib1-1.1.4/addrlist.html
/usr/share/doc/mimelib1-1.1.4/headers.html
/usr/share/doc/mimelib1-1.1.4/disptype.html
/usr/share/doc/mimelib1-1.1.4/protocol.html
/usr/share/doc/mimelib1-1.1.4/nntp.html
/usr/share/doc/mimelib1-1.1.4/group.html
/usr/share/doc/mimelib1-1.1.4/mimepp.html
/usr/share/doc/mimelib1-1.1.4/body.html
/usr/share/doc/mimelib1-1.1.4/fieldbdy.html
/usr/share/doc/mimelib1-1.1.4/util.html
/usr/share/doc/mimelib1-1.1.4/msgcmp.html
/usr/share/doc/mimelib1-1.1.4/uuencode.html
/usr/share/doc/mimelib1-1.1.4/string.html
/usr/share/doc/mimelib1-1.1.4/param.html
/usr/lib64/libmimelib.la
/usr/lib64/libmimelib.so.1.0.1
/usr/lib64/libmimelib.so
/usr/lib64/libmimelib.a
/usr/lib64/libmimelib.so.1
/usr/include/mimelib
/usr/include/mimelib/address.h
/usr/include/mimelib/headers.h
/usr/include/mimelib/uuencode.h
/usr/include/mimelib/mailbox.h
/usr/include/mimelib/string.h
/usr/include/mimelib/config.h
/usr/include/mimelib/param.h
/usr/include/mimelib/binhex.h
/usr/include/mimelib/token.h
/usr/include/mimelib/message.h
/usr/include/mimelib/utility.h
/usr/include/mimelib/body.h
/usr/include/mimelib/mediatyp.h
/usr/include/mimelib/group.h
/usr/include/mimelib/boyermor.h
/usr/include/mimelib/pop.h
/usr/include/mimelib/mboxlist.h
/usr/include/mimelib/entity.h
/usr/include/mimelib/mimepp.h
/usr/include/mimelib/fieldbdy.h
/usr/include/mimelib/protocol.h
/usr/include/mimelib/bodypart.h
/usr/include/mimelib/datetime.h
/usr/include/mimelib/field.h
/usr/include/mimelib/text.h
/usr/include/mimelib/addrlist.h
/usr/include/mimelib/enum.h
/usr/include/mimelib/nntp.h
/usr/include/mimelib/mechansm.h
/usr/include/mimelib/msgid.h
/usr/include/mimelib/disptype.h
/usr/include/mimelib/msgcmp.h
/usr/include/mimelib/debug.h


In the post after next, the lurker. Pls. allow (undefined, will try sooner) time.
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Thu Sep 03, 2015 10:31 pm    Post subject: Reply with quote

EDIT 2015-09-04 11:51+02:00 : The automake, that uses Makefile.am to produce Makefile.in for make, needs tabs at beginning of it's non-commented-out lines.

However, the phpBB turns tha tabs that I paste, into 4 spaces. So the sums can not come out correctly. So for the paches below, consider that after '>' and '<'> come one tab before non-whitespace chars.

I have, however, sent email to lurker mailing list, seems dead, and to Terpstra and Muerer, the authors/maintainers of this package/in Debian.

Patience...
EDIT END

cat mimelib1_1.1.4_configure.in.patch
Code:

--- configure.in.orig
+++ configure.in
8a9
> AC_CONFIG_MACRO_DIRS([m4])
18c19
< AC_LIBTOOL_DLOPEN
---
> LT_INIT([dlopen])
25a27
> AC_CHECK_HEADER_STDBOOL
30a33
> AC_TYPE_PID_T
34c37
<
---
> AC_FUNC_MMAP


cat mimelib1_1.1.4_Makefile.am.patch
Code:

--- Makefile.am.orig
+++ Makefile.am
4a5,6
>    ACLOCAL_AMFLAGS -I m4
>
--- mimelib/Makefile.am.orig
+++ mimelib/Makefile.am
17a18,19
>    ACLOCAL_AMFLAGS -I m4
>
--- mimelib/tests/Makefile.am.orig
+++ mimelib/tests/Makefile.am
2a3,4
>    ACLOCAL_AMFLAGS -I m4
>


# cat SUMS
Code:

3d965c59dd6adb7f2f9b9df8eb176512fa311cbd6d50ed178af5eb6ce407851a  mimelib1_1.1.4_configure.in.patch
f86d8dd42f1b74e5cc81a8cb9d7505cad2d0a1f1d5b2dd99e843e1a1ad2bfba7  mimelib1_1.1.4_Makefile.am.patch


# cat SUMS.sig
Code:

...
removed by poster
...

I'll check if phpB holds this information before I leave tonight. Won't be back prompty if if does. Will if my checks (pasting into terminal and see if all is right), if my checks fail.
EDIT: FAILS! The space is the matter. Can't be done/
For now, these are the patches, and the previous post on installing mimelib is, I really hope, still complete enough.

Regards.
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Thu Sep 17, 2015 11:27 pm    Post subject: Reply with quote

There should be a message that I just sent, at this address:

[Lurker-users] Installing Lurker on Gentoo
http://sourceforge.net/p/lurker/mailman/message/34469526/

Unfortunately, in my Dillo, and in my Lynx, I only see the title.

I have, however, received correct email with all the attachments, because I attached the patches I tried to post, unsuccessfully, in the previous to this post here on Gentoo Forums.

Don't know what it is. I really have a bad provider. Or it could be other things...

Good night for now.

Not yet... I tried:

http://sourceforge.net/p/lurker/mailman/attachment/20150917231359.GB16012%40g0n/1/

and I see the message, but I'm not sure if anyone that might be interested can get all the patches, if they are not subscribed.

Because I attached all correctly in Mutt:

Code:

  A     4 │ ├─>mimelib1_1.1.4_Makefile.am.patch  [text/plain, quoted, us-ascii, 0.3K]
  A     5 │ ├─>mimelib1_1.1.4_configure.in.patch [text/plain, quoted, us-ascii, 0.2K]
  A     6 │ ├─>mimelib1_1.1.4_Makefile.am.patch.sig[text/plain, 7bit, us-ascii, 0.8K]
  A     7 │ └─>mimelib1_1.1.4_configure.in.patch.sig[text/plain, 7bit, us-ascii, 0.8K]
  I     8 └─>signature.asc                           [applica/pgp-signat, 7bit, 0.8K]


Everything shows in subscribers' mailboxes correctly.

Regards.
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Fri Sep 18, 2015 11:06 am    Post subject: Reply with quote

I really did what I could, but it appears that for some reason, no attachment can be sent to appear publically on the SourceForge web.

Look up that, at the time of this posting of mine, there are exactly (3) messages, all mine at:

http://sourceforge.net/p/lurker/mailman/lurker-users/

See that the first is, as described in the previous post to this in thie Gentoo Forums topic, viewable only by clicking on the "Message as HTML" near 2015-09-17 23:12:37 (probably connected to it having attachments). that message also arrived non-PGP-verifiable (PGP bad) into subscribers mailboxes.

See that the second message arrived correctly in subscribers mailboxes (if they got from SF what I got), PGP-verifiable, and shows correctly at:

http://sourceforge.net/p/lurker/mailman/message/34470709/

And the third message, again, can only be seen by clicking on "Message as HTML" near

2015-09-18 10:41:30

And if you open that:

http://sourceforge.net/p/lurker/mailman/attachment/20150918104249.GC4794%40g0n/1/

you can also read my plea:

Quote:

And if they still don't arrive correctly, and verifiably signed, pls.
can some of the other subscirbers to the list, soon or some day in the
future that it be, post them so they be publically available, please?
Surely there'll be other people wanting to use Lurker, because it's
really so much better than mailman, and this method is non-Debian
specific, and probably non-Gentoo specific, the method that I used.


I'm done for now, with my attempts to publish thos patches correctly.
EDIT 2015-09-18 13:54+02:00:
I thought I was done, but I made a last ditch attempt and no, it's probably
not my fault, on:
http://sourceforge.net/p/lurker/mailman/lurker-users/?viewmonth=201509
see near:
2015-09-18 11:40:30
and click "Message as HTML"
http://sourceforge.net/p/lurker/mailman/attachment/20150918114154.GD4794%40g0n/1/
That message arrives (if other subscribers get what I get from SF) with
verifiable, good PGP signature on the whole message in subscribers' mailboxes,
but SF web shows it only when you click on "Message as HTML".

My plea reamains there for Lurker users. DONE NOW with mimelib part. Will keep
an empty post next, in case somebody from among subscribers helps out, to post
what is still missing, those two patches verifiable, publically.
EDIT END

Regards!
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Fri Sep 18, 2015 12:02 pm    Post subject: Reply with quote

This post remains empty, till there somebody from among the Lurker Mailng List subscribers, hopefully, helps and finds a way to post on Lurker Mailing List those two patches, if anyone needs them.

If that should happen, this notice will be replaced by the, currently, missing part of the solution to installing the mimelib.

Thanks!
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Fri Sep 18, 2015 2:06 pm    Post subject: Reply with quote

Once mimlib is installed, lurker can be installed.

I did something like the following:

Code:

# tar xf /wherever-you-downloaded-it/lurker_2.3-5.debian.tar.xz

It uncompresses into:
Code:
# ls -ld
drwxr-xr-x 7 root root 4096 2015-09-17 14:50 debian/
#

Now:
Code:
# cd debian
# tar xf /wherever-you-downloaded-it/lurker_2.3.orig.tar.gz
#


I currently, after I conf'd-n-make-n-make-install'd it, have it now):
Code:
# ls -l
total 168
-rw-r--r--  1 root root 28533 2014-07-24 12:31 changelog
-rw-r--r--  1 root root     2 2011-09-19 12:51 compat
-rw-r--r--  1 root root  1551 2013-12-13 15:46 config
-rw-r--r--  1 root root   874 2013-12-13 16:14 control
-rw-r--r--  1 root root  1098 2013-12-13 16:21 copyright
-rw-r--r--  1 root root    27 2013-12-13 00:34 dirs
-rw-r--r--  1 root root   156 2014-07-24 12:26 docs
-rw-r--r--  1 root root   167 2013-12-13 01:49 install
-rw-r--r--  1 root root    41 2011-09-19 12:51 lintian-overrides
drwxr-xr-x 11 miro miro  4096 2015-09-17 10:39 lurker-2.3
-rw-r--r--  1 root root    85 2011-09-19 12:51 lurker.cron.d
-rw-r--r--  1 root root   243 2011-09-19 12:51 lurker-index-lc
-rw-r--r--  1 root root  1124 2011-09-19 12:51 lurker-index-lc.1
-rw-r--r--  1 root root  3319 2011-09-19 12:51 lurker-index-lc.sgml
-rw-r--r--  1 root root 11226 2011-09-19 12:51 mailman2lurker
-rw-r--r--  1 root root   368 2011-09-19 12:51 mindex.patch
-rw-r--r--  1 root root  2678 2011-09-19 12:51 NEWS
drwxr-xr-x  2 root root  4096 2015-09-17 07:47 patches
drwxr-xr-x  2 root root  4096 2014-07-24 12:39 po
-rw-r--r--  1 root root  2854 2014-07-24 12:20 postinst
-rw-r--r--  1 root root  1435 2013-12-13 00:42 postrm
-rw-r--r--  1 root root   534 2014-07-24 12:20 prerm
-rw-r--r--  1 root root  3375 2013-12-13 16:02 README.Debian
-rw-r--r--  1 root root  3866 2014-07-24 12:25 README.exim4
-rw-r--r--  1 root root   839 2011-09-19 12:51 README.maildrop
-rw-r--r--  1 root root  4214 2011-09-19 12:51 README.mailman
-rw-r--r--  1 root root  1584 2011-09-19 12:51 README.procmail
-rw-r--r--  1 root root   120 2011-09-19 12:51 README.source
-rwxr-xr-x  1 root root  3459 2013-12-13 01:51 rules
drwxr-xr-x  2 root root  4096 2011-09-19 12:51 source
-rw-r--r--  1 root root   794 2013-12-13 15:39 templates
-rw-r--r--  1 root root    87 2011-09-19 12:51 watch
#

Should anybody follow this method, they would have it slightly differently at first, but lots of the files remain, as the debian content I only minimally used. It's very Debian-specific things for Debian dpkg configuration, also apache in Debian, and its modules, are installed in only-Debian specific ways, et cetera.

Now, the patches (in debian/patches/ ) that make lurker installable with the autoconf, automake tools and such, which follow still mostly the same methods that were changed sometimes, when was it exactly?, around 2005 plus minus a few years, because there has been no need to any more patches in the few recent years (maybe some five years or so)...

Without these patches there is no chance that anybody would be able to install the lurker as it is available from SourceForge, and as it is --it's the same, only with the infix .orig., so differently named but the same version-- [and as it is] available from Debian repositories. No way! Because it is developed for the old autoconf and automake tools mostly unavailable and never anywhere used today, if I understand correctly.

But those patches, I am talking about the three patches in, as I said, in:

Code:

# ls -l debian/patches/
total 432
-rw-r--r-- 1 root root 428439 2015-09-17 07:37 01_bump_autotools.patch
-rw-r--r-- 1 root root   1052 2015-09-17 07:37 02_nested_frontends.patch
-rw-r--r-- 1 root root   1202 2015-09-17 07:37 03_apache.conf.patch
-rw-r--r-- 1 root root     91 2013-12-13 01:40 series
#

where this file:
Code:

# cat debian/patches/series
# quilt series file
01_bump_autotools.patch
02_nested_frontends.patch
03_apache.conf.patch
#

tells you that in Debian, the quilt package is used to apply these patches.

I was able to install quilt in Gentoo, but I wasn't able to figure out how to use it in this case.

But I was able to patch those three patches in such way as to apply them successfully, and judging by the eventually successful install, correctly.

Again, I will try to somehow verifiable, hopefully on lurker-users ML, post the diffs that worked for me (that I decided not to rename to patches, as they are diffs for those patches).

Here they are, in unverifiable phpBB
Code:
...
markup.

In a post of their own.
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Fri Sep 18, 2015 2:07 pm    Post subject: Reply with quote

# cat 01_bump_autotools.patch.diff
Code:

5,6c5,6
< --- lurker-2.3/render/Makefile.in   (Revision 1672)
< +++ lurker-2.3/render/Makefile.in   (Revision 1673)
---
> --- lurker-2.3.orig/render/Makefile.in   
> +++ lurker-2.3/render/Makefile.in   
293,294c293,294
< --- lurker-2.3/configure   (Revision 1672)
< +++ lurker-2.3/configure   (Revision 1673)
---
> --- lurker-2.3.orig/configure   
> +++ lurker-2.3/configure   
8613,8614c8613,8614
< --- lurker-2.3/Makefile.in   (Revision 1672)
< +++ lurker-2.3/Makefile.in   (Revision 1673)
---
> --- lurker-2.3.orig/Makefile.in   
> +++ lurker-2.3/Makefile.in   
9101,9102c9101,9102
< --- lurker-2.3/libesort/Makefile.in   (Revision 1672)
< +++ lurker-2.3/libesort/Makefile.in   (Revision 1673)
---
> --- lurker-2.3.orig/libesort/Makefile.in   
> +++ lurker-2.3/libesort/Makefile.in   
9339,9340c9339,9340
< --- lurker-2.3/ChangeLog   (Revision 1672)
< +++ lurker-2.3/ChangeLog   (Revision 1673)
---
> --- lurker-2.3.orig/ChangeLog   
> +++ lurker-2.3/ChangeLog   
9348,9349c9348,9349
< --- lurker-2.3/common/Makefile.in   (Revision 1672)
< +++ lurker-2.3/common/Makefile.in   (Revision 1673)
---
> --- lurker-2.3.orig/common/Makefile.in   
> +++ lurker-2.3/common/Makefile.in   
9586,9587c9586,9587
< --- lurker-2.3/prune/Makefile.in   (Revision 1672)
< +++ lurker-2.3/prune/Makefile.in   (Revision 1673)
---
> --- lurker-2.3.orig/prune/Makefile.in   
> +++ lurker-2.3/prune/Makefile.in   
10000,10001c10000,10001
< --- lurker-2.3/mymime/Makefile.in   (Revision 1672)
< +++ lurker-2.3/mymime/Makefile.in   (Revision 1673)
---
> --- lurker-2.3.orig/mymime/Makefile.in   
> +++ lurker-2.3/mymime/Makefile.in   
10734,10735c10734,10735
< --- lurker-2.3/imgs/Makefile.in   (Revision 1672)
< +++ lurker-2.3/imgs/Makefile.in   (Revision 1673)
---
> --- lurker-2.3.orig/imgs/Makefile.in   
> +++ lurker-2.3/imgs/Makefile.in   
10942,10943c10942,10943
< --- lurker-2.3/index/Makefile.in   (Revision 1672)
< +++ lurker-2.3/index/Makefile.in   (Revision 1673)
---
> --- lurker-2.3.orig/index/Makefile.in   
> +++ lurker-2.3/index/Makefile.in   
11405,11406c11405,11406
< --- lurker-2.3/ui/Makefile.in   (Revision 1672)
< +++ lurker-2.3/ui/Makefile.in   (Revision 1673)
---
> --- lurker-2.3.orig/ui/Makefile.in   
> +++ lurker-2.3/ui/Makefile.in   


# cat 02_nested_frontends.patch.diff
Code:

5,6c5,6
< --- lurker-2.3/render/main.cpp   (Revision 1673)
< +++ lurker-2.3/render/main.cpp   (Revision 1674)
---
> --- lurker-2.3.orig/render/main.cpp   
> +++ lurker-2.3/render/main.cpp   
23,24c23,24
< --- lurker-2.3/Changelog   (Revision 1673)
< +++ lurker-2.3/ChangeLog   (Revision 1674)
---
> --- lurker-2.3.orig/Changelog   
> +++ lurker-2.3/ChangeLog   


# cat 03_apache.conf.patch.diff
Code:

5c5
< --- lurker-2.3/apache.conf.in
---
> --- lurker-2.3.orig/apache.conf.in
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Fri Sep 18, 2015 2:08 pm    Post subject: Reply with quote

Let's suppose you keep these patch.diffs in the directory that holds the
aforementioned debian/ directory.

Now you, Gentooer or some other non-Debian, and non-Debian-derivative distro user, who might be following this method of mine, need to, after maybe backing up the quilt patches first, do:
Code:

# cd debian/patches
# patch -p 0 01_bump_autotools.patch < ../../01_bump_autotools.patch.diff
# patch -p 0 02_nested_frontends.patch < ../../02_nested_frontends.patch.diff
# patch -p 0 03_apache.conf.patch < ../../03_apache.conf.patch.diff


These patches 01_bump_autotools.patch, 02_nested_frontends.patch, 03_apache.conf.patch can now be used straight, without quilt, on the lurker-2.3 that you unpacked in debian.

So you need to patch the lurker-2.3 various 15 yrs old files in, maybe, this way:

Code:

# cd ../
# patch -p 0 < patches/01_bump_autotools.patch
# patch -p 0 < patches/02_nested_frontends.patch
# patch -p 0 < patches/03_apache.conf.patch


And now, that lurker patched 15-yrs old original source directory can be normally run ./configure, than make, then make install, and, if it is your first installation of lurker, make install-config.

TEMPORARY (for shorter or longer) NOTE. I NEED TO VERIFY THE METHOD ABOVE. STILL WITH MY NERVES WRACKED FOR THE INABILITY TO PUBLISH THE PATCHES (for mimelib) ON SOURCEFORGE. NEED REST.
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Fri Sep 18, 2015 2:14 pm    Post subject: Reply with quote

Anyway, ith the method explained where I described how I installed mimelib, I have lurker, after the make, make install and make install-config, I have now lurker installed with these files:
# cat /var/log/no-portage/lurker-2.3_150917_0900.ls-1
Code:

/usr/share/man/man1/lurker-index.1
/usr/share/man/man1/lurker-prune.1
/usr/share/man/man1/lurker-regenerate.1
/usr/share/man/man1/lurker-list.1
/usr/share/man/man1/lurker-search.1
/usr/share/man/man1/lurker-params.1
/usr/bin/lurker-regenerate
/usr/bin/lurker-prune
/usr/bin/lurker-list
/usr/bin/lurker-index
/usr/bin/lurker-params
/usr/bin/lurker-search
/var/lib/lurker
/var/lib/lurker/db
/var/www/localhost/cgi-bin/jump.cgi
/var/www/localhost/cgi-bin/bounce.cgi
/var/www/localhost/cgi-bin/keyword.cgi
/var/www/localhost/cgi-bin/lurker.cgi
/var/www/lurker
/var/www/lurker/list
/var/www/lurker/search
/var/www/lurker/imgs
/var/www/lurker/imgs/root.png
/var/www/lurker/imgs/k.png
/var/www/lurker/imgs/a.png
/var/www/lurker/imgs/i.png
/var/www/lurker/imgs/j.png
/var/www/lurker/imgs/prev.png
/var/www/lurker/imgs/e.png
/var/www/lurker/imgs/c.png
/var/www/lurker/imgs/bar.png
/var/www/lurker/imgs/g.png
/var/www/lurker/imgs/reply.png
/var/www/lurker/imgs/trash.png
/var/www/lurker/imgs/paperclip.png
/var/www/lurker/imgs/f.png
/var/www/lurker/imgs/next.png
/var/www/lurker/imgs/b.png
/var/www/lurker/imgs/h.png
/var/www/lurker/imgs/d.png
/var/www/lurker/attach
/var/www/lurker/ui
/var/www/lurker/ui/list.xsl
/var/www/lurker/ui/common.xsl
/var/www/lurker/ui/en.xml
/var/www/lurker/ui/message.xsl
/var/www/lurker/ui/fr.xml
/var/www/lurker/ui/pt-BR.xml
/var/www/lurker/ui/default.css
/var/www/lurker/ui/fi.xml
/var/www/lurker/ui/de.xml
/var/www/lurker/ui/el.xml
/var/www/lurker/ui/ja.xml
/var/www/lurker/ui/it.xml
/var/www/lurker/ui/nl.xml
/var/www/lurker/ui/es.xml
/var/www/lurker/ui/mindex.xsl
/var/www/lurker/ui/hu.xml
/var/www/lurker/ui/common.js
/var/www/lurker/ui/splash.xsl
/var/www/lurker/ui/lang.xml
/var/www/lurker/ui/lang.xsl
/var/www/lurker/ui/pt.xml
/var/www/lurker/ui/pl.xml
/var/www/lurker/ui/gl.xml
/var/www/lurker/ui/thread.xsl
/var/www/lurker/ui/da.xml
/var/www/lurker/ui/ca.xml
/var/www/lurker/ui/search.xsl
/var/www/lurker/thread
/var/www/lurker/zap
/var/www/lurker/lurker.docroot
/var/www/lurker/splash
/var/www/lurker/mindex
/var/www/lurker/mbox
/var/www/lurker/index.html
/var/www/lurker/message
/etc/lurker
/etc/lurker/lurker.conf
/etc/lurker/apache.conf


And there is more to say, but now we are getting closer to where I might need help, probably from lurker users.

Hereby I thnak Jonas Muerer who replied to me, telling me lurker-users is live, but low volume... Hope to read from him, when I formulate the questions that I might have...

Patience, that is be sooner or later that I continue with this topic.
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Fri Sep 18, 2015 7:34 pm    Post subject: Reply with quote

WARNING: USE MY ADVICE BELOW AT YOUR OWN RISK!
I posted all this in good faith, but haven't had time to double-check it all.

Sorry if this is out of order, and if I should have given it in some previous post, but here is as good because someone who wants to install lurker will need to read all of this anyway: my confugure line I want to give you, because it's needed for better understanding of the remaining configurations, as well as for the help that I might need from the lurker-users.

I used these configure options:

Code:

$ ./configure --prefix=/usr --sysconfdir=/etc --with-mimelib-include=/usr/include/mimelib \
   --with-zlib-include=/usr/include --localstatedir=/var --with-default-www-dir=/var/www/lurker \
   --with-cgi-bin-dir=/var/www/localhost/cgi-bin
$


And an improvement to my out-of-portage method is due here too (again out of place, but... still unnerved for the inability to publish those simple patches verifiable in the SourceForge lurker-users ML)

Code:

# for i in $(cat /var/log/no-portage/lurker-2.3_150917_0900.ls-1) ; do if [ -f "$i" ] ; then ls -l $i ; sha256sum $i >> /var/log/no-portage/lurker-2.3_150917_0900.ls-1.SUMS fi ; read FAKE ; done ;

The above only checks if the loop is correct. The below does the work:
Code:

# for i in $(cat /var/log/no-portage/lurker-2.3_150917_0900.ls-1) ; do if [ -f "$i" ] ; then ls -l $i ; sha256sum $i >> /var/log/no-portage/lurker-2.3_150917_0900.ls-1.SUMS ; fi ; read FAKE ; done ;

Surely you need to replace lurker-2.3_150917_0900.ls-1 with your timestamped lurker install list...

And the above gives me a way to know if anything was corrupted at any later date, for all the time that I'll be using this out-of-portage lurker installation.

Anyway, I have, with all the above method, explained pretty thoroughly in all the previous posts, successfully installed lurker.

But there are a few things left to do.

These posts of mine are surely only a supplement to the documentation, from
REDME, INSTALL and other documents in the old lurker source, as well as in the
debian/ folder.

I noticed that after running the 'make install-config' as per the old lurker
INSTALL document, I got the files (but I'm showing you the patched versions:

Code:

# ls -l /etc/lurker/
total 16
-rw-r--r-- 1 root root  890 2015-09-17 09:38 apache.conf
-rw-r--r-- 1 root root 9731 2015-09-17 12:09 lurker.conf
#


and after adding the line:
Code:
 Include /etc/lurker/apache.conf

into the:
Code:
/etc/apache2/httpd.conf


I still got some errors, and I couldn't open the:

(this link only opens for you locally, if you installed and configured lurker
like me)
http://ukrainian-site/lurker/

where ukrainian-site is just some name that you should replace with your own name you use in your apache (and I too: that is not my real apache address --offline only I use apache at this time, just so you don't mistake me for being really advanced user).

So another patch was due to apply, because I don't have the Version mudule, as, judging by the /etc/lurker/apache.conf installed, Debian uses by default (there are the:

Code:

  <IfVersion >= 2.3>
  ...

and
Code:

  <IfVersion < 2.3>
  ...

lines in there.

But I left that patch in the computer that's currently hibernated in ram, so I can't show you that one.

But it's simple what you need to do. Completely comment out all the lines from:
Code:

#   <IfVersion < 2.3>

to
Code:

#   </IfVersion>


Comment only these two lines regarding the greater version:

Code:

#  <IfVersion >= 2.3>

and
Code:

#   </IfVersion>


And if you use the Rewrite module anyway, you can also try commenting out these two lines:

Code:

#  <IfModule mod_rewrite.c>


Code:

#  </IfModule>


But still lurker wouldn't show the fine page with the search at the top, let alone any mailboxes (for that we will use lurker-index later).

I read, and surely couldn't apply as it is Debian-specific, the script:
Code:

debian/postinst

but I figured out that I should probably do, and I did so:

Code:

# groupadd -r lurker
# usermod -a -G lurker ukrainian
# usermod -a -G lurker somegoodrussian
# chown -R root:lurker /var/lib/lurker/


EDIT 2015-09-19 20:11+02:00:
Also necessary:
Code:

# usermod -a -G lurker apache

and you can then check it e.g. like:
Code:

# grep /etc/group | grep lurker
lurker:x:991:ukrainian,somegoodrussian,apache
#

[[ and now the "latter" in the old text below concerns the "chown -R root:lurker ..." line above ]]
EDIT END

(the latter I'm not sure if I may need to change to:
Code:

# chown -R ukra:lurker /var/lib/lurker/

(where I/you need to replace ukra with you regular user that need to be able to create the database from the mailbox to serve with lurker; ukra is just my shorter alias for Ukrainians, related nation to us Croats)

Also ukrainian and somegoodrussian are examples. (somegoodrussian because there are, although silent, good non-Putinist Russians, many, I believe, who oppose the aggression on Ukraine)

Also this I know is needed:
Code:

chmod u=rwx,g=rwxs,o=rx /var/lib/lurker


It showed more now, but not the fine page with the search at the top and all.

I noticed that I needed to do this too:

Code:

# chown -R apache:apache /var/www/lurker/


I don't remember now if I forgot to relate some more things that are necessary to do.

But anyway, for me, the page:

More Attempts at Lurker Deployment
http://ukrainian-site/lurker/splash/index.en.html

now shows nice and correctly.

And here we finally arrived at where I may need some help. All this is mostly my really little giving back to Free Open Source Software community, in which I almost religeously believe in, because it is, by design, and against all treasons, and there have sadly been many (just see my signature that I use on Gentoo Forums), the freeest area in all the computing of today... Let's fight for our and all the nations in the world's privacy, brothers in *nix! It is a battle we must not loose!...

In the next post. Overwhelmed a little.


Last edited by miroR on Sat Sep 19, 2015 6:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Fri Sep 18, 2015 7:44 pm    Post subject: Reply with quote

Ah, but before the promised next post, I need to relate to the readers what I left out to report about.

I also needed to configure grsecurity's RBA policies for lurker.

I am however, find to leave those for later, as, sadly, most people don't use them... Newbies are, a little less I should hope to be the case here in Gentoo, advised to even install in their boxes the NSA-Linux, ehrmm I meant SELinux...
(
NSA SELinux Support???
https://forums.gentoo.org/viewtopic-t-984066.html
)

No, brothers, there is no privacy without grsecurity, and my dream is to learn installing and deploying grsecurity so welll to some day be able to teach newbies how to protect their boxes with it, and how to achieve true privacy. But even I have not reached there yet. Only much safer, much safer online than I used to be. An I do live under an obnoxious regime.

This was just a, necessary, digression. The promised next post, is, still, next.
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Wed Sep 30, 2015 10:58 pm    Post subject: Reply with quote

I have succeeded in deploying Lurker, in my SOHO, and use a simple, very familiar progam in FOSS Linux circles, to get a "still" archive out of it.

Not saying the filnal step with that program that I intentionally leave you guessing, because I also leave the (few) readers of the lurker ML guessing.

Re: [Lurker-users] Installing Lurker on Gentoo
http://sourceforge.net/p/lurker/mailman/message/34505021/

(Because I want some feedback.)

I did some minor HTML editing around there (for now; the better way is to mess with xslt, but that is a little advanced yet.

And you can see what I did here:

iskon-t-com-miro-rovis
http://www.croatiafidelis.hr/foss/cenz/iskon-t-com-miro-rovis/

Note, e.g. that I cite Gentoo a lot there in that intro page, and note that this link on Gentoo Forums:

Postfix smtp/TLS, Bkp/Cloning Mthd, Censorship/Intrusion
https://forums.gentoo.org/viewtopic-t-999436.html#7682770

has there the original email:


Re: Upozorenje T-Com administratora
http://www.croatiafidelis.hr/foss/cenz/iskon-t-com-miro-rovis/message/20150113.171003.a35398a1.en.html

Now what will you think will have happened if all of a sudden you see none of that on that page on my NGO's www.CroatiaFidelis.hr website?

(remember that the regime got my entire 5 yrs work on Youtube, the account terminated on their own, and Google's own (the owner and buster of Youtube) falsity.

(
Really? The Surveillance Engine Terminated All My Videos
http://forums.debian.net/viewtopic.php?t=113059
)

I am a little worried, but I'm not relinquishing my freedom to think and to write.

Regards!
Back to top
View user's profile Send private message
miroR
l33t
l33t


Joined: 05 Mar 2008
Posts: 826

PostPosted: Sun Mar 13, 2016 10:38 pm    Post subject: Reply with quote

I reinstalled mimelib and lurker, you'll read why in a minute.

I currently (I said I use my Apache offline only yet) need it to retrieve a still mail archive from it for my (currently) on-a-hoster-server-posted pages, like in the link that I gave end of September 2015, a previous post above.

And when I want to post mails to web-pages, I select them with tab'ing them in my Mutt install, and save them (usually the selected threads) separately in a new maildir, from which I can then import them into lurker.

And that is what I did this afternoon. Actually I tried to do just that with the old install (that I haven't touched since about September 2015, half a year ago). Yesterday I tried. And I couldn't import them.

And the minute is over, and now you know why I went reinstalling my mimelib and my lurker: because I couldn't import those. It takes longer to explain why I couldn't import them, and I'll do it in a few minutes.

Just before I continue: my no-portage method works. The listing od the installed files works. Checking the sums works! So it's an verifiable install method. And since what I'll soon be posting below is another successful install of mimelib and lurker, you can figure out that also the removing, completely removing clean of my out-of-portage installed packages works impeccably (I will be back if there I later find issues, I am sincere and won't hold back if there be issues in the future, but you can stay pretty assured there will hardly be any.).

That's an important point, the above. This method is reliable, it seems to me. (And I still think figuring out how to do it in portage is much more work on top of all that I deployed above.)

For the reinstall, I used the posts in this topic that you are reading, and which is misnamed for my work that I posted in this topic...

Need help creating ebuild for "lurker"
https://forums.gentoo.org/viewtopic-t-228582.html#7712344

which is a title that I didn't choose. I wasn't even around back then in 2004. I came to Gentoo in 2008.

And so I currently in-my-offline-only-Apache need lurker to be able to retrieve a still mail archive from lurker deployed with my Apache for my hoster-server posted pages, like in the link that I gave end of September 2015.

And I selected some threads with tab'ing them in my Mutt, and saved them separately in a new maildir.

And that is what I did, first yesterday with the old install, without success, and now again this afternoon.

(Just to prevent misunderstanding, the solution that I found further below would have worked on the old install. There was nothing wrong with the old install)

Just here is how my tries went. It might be useful to a rare user who gets advanced enough to be able to use lurker for a reason like mine, or for its full purpose.

This is how the database looked like just after the install and the first fixing of the perms as I explains half a year ago, further above in this topic.

Code:

# ls -la /var/lib/lurker/
total 12
drwxrwsr-x  2 root lurker 4096 2016-03-13 14:22 .
drwxr-xr-x 29 root root   4096 2016-03-13 12:57 ..
-rw-r--r--  1 root lurker   11 2016-03-13 12:59 db
-rw-rw-r--  1 ukra lurker    0 2016-03-13 14:22 db.writer

And:
Code:

$ lurker-index -l vankina2-10 -i vankina2-10 -v
/var/lib/lurker/db: Permission denied
$

So:
Code:

$ chown -R ukra:lurker /var/lib/lurker/
$

And now:
Code:

# ls -la /var/lib/lurker/
total 12
drwxrwsr-x  2 ukra lurker 4096 2016-03-13 14:22 .
drwxr-xr-x 29 root root   4096 2016-03-13 14:30 ..
-rw-r--r--  1 ukra lurker   11 2016-03-13 12:59 db
-rw-rw-r--  1 ukra lurker    0 2016-03-13 14:22 db.writer
#

But still:
Code:

 $ lurker-index -l vankina2-10 -i vankina2-10 -v
Imported 0 messages (0MB) at 0 messages (0KB) / second
$

And that was depressing for me to see. The first "vankina2-10" is the id of the list, as I gave it in the /etc/lurker/lurker.conf. And the second "vankina2-10" is the maildir where I saved those threads with Mutt, and it is not empty. I's a maildir with a number of emails in.

I wasn't quite certain, but I finally remembered here that I had been at that same place and position before (poor memory, I thought I'd be able to remember, I was sure I would, but it took me one whole day to remember; old age, what can you).

I here vaguely remembered that it was about the maildir's folders.

So let me explain. This is the structure of that maildir:

Code:

vankina2-10/:
total 40
drwxr-xr-x  5 ukra lurker  4096 2016-03-12 16:20 .
drwxr-xr-x 53 ukra ukra   20480 2016-03-12 22:06 ..
drwxr-xr-x  2 ukra lurker  4096 2016-03-12 16:31 cur
drwxr-xr-x  2 ukra lurker  4096 2016-03-12 16:20 new
drwxr-xr-x  2 ukra lurker  4096 2016-03-12 16:31 tmp

vankina2-10/cur:
total 1332
drwxr-xr-x 2 ukra lurker   4096 2016-03-12 16:31 .
drwxr-xr-x 5 ukra lurker   4096 2016-03-12 16:20 ..
-rw-r--r-- 1 ukra lurker  19874 2016-02-26 00:21 1457796660.3998_11.g5n:2,S
-rw-r--r-- 1 ukra lurker  19918 2016-02-26 00:26 1457796660.3998_13.g5n:2,S
-rw-r--r-- 1 ukra lurker  28433 2016-02-26 20:02 1457796660.3998_15.g5n:2,S
-rw-r--r-- 1 ukra lurker   5115 2016-02-29 07:12 1457796660.3998_17.g5n:2,S
-rw-r--r-- 1 ukra lurker  11658 2016-03-01 08:51 1457796660.3998_19.g5n:2,S
-rw-r--r-- 1 ukra lurker  17254 2016-03-10 14:46 1457796660.3998_21.g5n:2,S
-rw-r--r-- 1 ukra lurker  11371 2016-02-15 16:00 1457796660.3998_3.g5n:2,S
-rw-r--r-- 1 ukra lurker 193561 2016-02-15 16:10 1457796660.3998_5.g5n:2,S
-rw-r--r-- 1 ukra lurker 184045 2016-02-15 16:49 1457796660.3998_7.g5n:2,S
-rw-r--r-- 1 ukra lurker 698079 2016-02-17 19:23 1457796660.3998_9.g5n:2,RS
-rw-r--r-- 1 ukra lurker  19918 2016-03-10 14:47 1457796661.3998_23.g5n:2,S
-rw-r--r-- 1 ukra lurker  25153 2016-03-10 14:52 1457796661.3998_25.g5n:2,FRS
-rw-r--r-- 1 ukra lurker  21269 2016-03-10 14:55 1457796661.3998_27.g5n:2,S
-rw-r--r-- 1 ukra lurker  26913 2016-03-11 11:04 1457796661.3998_29.g5n:2,S
-rw-r--r-- 1 ukra lurker  47467 2016-03-11 11:04 1457796661.3998_31.g5n:2,S

vankina2-10/new:
total 8
drwxr-xr-x 2 ukra lurker 4096 2016-03-12 16:20 .
drwxr-xr-x 5 ukra lurker 4096 2016-03-12 16:20 ..

vankina2-10/tmp:
total 8
drwxr-xr-x 2 ukra lurker 4096 2016-03-12 16:31 .
drwxr-xr-x 5 ukra lurker 4096 2016-03-12 16:20 ..


Notice that all the mails are in cur. That's normal for Mutt, probably for Courier and other mailers as well.

And I thought I remembered that it would never work with the vankina2-10/cur having all the emails. It would work once I moved all the emails from vankina2-10/cur to vankina2-10/new.

And I went on to see.

Code:

$ mv -iv vankina2-10/cur/145779666*  vankina2-10/new/
'vankina2-10/cur/1457796660.3998_11.g5n:2,S' -> 'vankina2-10/new/1457796660.3998_11.g5n:2,S'
'vankina2-10/cur/1457796660.3998_13.g5n:2,S' -> 'vankina2-10/new/1457796660.3998_13.g5n:2,S'
'vankina2-10/cur/1457796660.3998_15.g5n:2,S' -> 'vankina2-10/new/1457796660.3998_15.g5n:2,S'
'vankina2-10/cur/1457796660.3998_17.g5n:2,S' -> 'vankina2-10/new/1457796660.3998_17.g5n:2,S'
'vankina2-10/cur/1457796660.3998_19.g5n:2,S' -> 'vankina2-10/new/1457796660.3998_19.g5n:2,S'
'vankina2-10/cur/1457796660.3998_21.g5n:2,S' -> 'vankina2-10/new/1457796660.3998_21.g5n:2,S'
'vankina2-10/cur/1457796660.3998_3.g5n:2,S' -> 'vankina2-10/new/1457796660.3998_3.g5n:2,S'
'vankina2-10/cur/1457796660.3998_5.g5n:2,S' -> 'vankina2-10/new/1457796660.3998_5.g5n:2,S'
'vankina2-10/cur/1457796660.3998_7.g5n:2,S' -> 'vankina2-10/new/1457796660.3998_7.g5n:2,S'
'vankina2-10/cur/1457796660.3998_9.g5n:2,RS' -> 'vankina2-10/new/1457796660.3998_9.g5n:2,RS'
'vankina2-10/cur/1457796661.3998_23.g5n:2,S' -> 'vankina2-10/new/1457796661.3998_23.g5n:2,S'
'vankina2-10/cur/1457796661.3998_25.g5n:2,FRS' -> 'vankina2-10/new/1457796661.3998_25.g5n:2,FRS'
'vankina2-10/cur/1457796661.3998_27.g5n:2,S' -> 'vankina2-10/new/1457796661.3998_27.g5n:2,S'
'vankina2-10/cur/1457796661.3998_29.g5n:2,S' -> 'vankina2-10/new/1457796661.3998_29.g5n:2,S'
'vankina2-10/cur/1457796661.3998_31.g5n:2,S' -> 'vankina2-10/new/1457796661.3998_31.g5n:2,S'
$


And there was the moment of truth coming. I still didn't know if it would work as I was writing the first draft of this post close to this line where you're at now...

... [suspense] ... [suspense] ...

Code:

$ lurker-index -l vankina2-10 -i vankina2-10 -v
Imported 15 messages (1MB) at 15 messages (1298KB) / second
$


It worked. The above also showed via Apache to my Firefox as any properly installed Lurker shows mail archive on the web. Just great!

And here I thought I definitely needed to tell about this on Gentoo Forums, along with updating this topic to say that the method works, and apart from quite a few typoes that I found uncorrected (but figurable), the method is now verified.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum