Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos
Commits
59aee732
Commit
59aee732
authored
Oct 10, 2012
by
Viktor Horvath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
One more 'simple' Perl module, more rewriting of standard paths,
but there are yet some to correct.
parent
dbbd9a96
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
slapos/recipe/mioga/instantiate.py
slapos/recipe/mioga/instantiate.py
+2
-0
software/mioga/mioga-hooks.py
software/mioga/mioga-hooks.py
+14
-1
software/mioga/software.cfg
software/mioga/software.cfg
+2
-0
No files found.
slapos/recipe/mioga/instantiate.py
View file @
59aee732
...
...
@@ -60,6 +60,8 @@ class Recipe(GenericBaseRecipe):
fm
.
modify
(
'maildir'
,
os
.
path
.
join
(
vardir
,
'spool'
,
'mioga'
,
'maildir'
))
fm
.
modify
(
'maildirerror'
,
os
.
path
.
join
(
vardir
,
'spool'
,
'mioga'
,
'error'
))
fm
.
modify
(
'mailfifo'
,
os
.
path
.
join
(
vardir
,
'spool'
,
'mioga'
,
'fifo'
))
fm
.
modify
(
'notifierfifo'
,
os
.
path
.
join
(
vardir
,
'spool'
,
'mioga'
,
'notifier'
))
fm
.
modify
(
'searchenginefifo'
,
os
.
path
.
join
(
vardir
,
'spool'
,
'mioga'
,
'searchengine'
))
fm
.
modify
(
'dbi_passwd'
,
self
.
options
[
'db_password'
])
fm
.
modify
(
'db_host'
,
self
.
options
[
'db_host'
])
fm
.
modify
(
'db_port'
,
self
.
options
[
'db_port'
])
...
...
software/mioga/mioga-hooks.py
View file @
59aee732
#
import fnmatch
import
fnmatch
import
grp
import
os
import
pprint
...
...
@@ -48,6 +48,19 @@ def pre_configure_hook(options, bo, env):
# TODO: mail settings are certainly wrong, what is the domain name?
# Correct shebangs to the right Perl
for
root
,
dirnames
,
filenames
in
os
.
walk
(
'.'
):
for
filename
in
fnmatch
.
filter
(
filenames
,
'*.pl'
):
with
open
(
os
.
path
.
join
(
root
,
filename
),
"r+"
)
as
f
:
lines
=
f
.
readlines
()
(
lines
[
0
],
count
)
=
re
.
subn
(
r'^#!/usr/bin/perl'
,
'#!'
+
options
[
'perl-binary'
],
lines
[
0
],
1
)
if
count
>
0
:
f
.
seek
(
0
)
f
.
writelines
(
lines
)
print
"Corrected interpreter for script "
+
filename
# def post_make_hook(options, buildout):
...
...
software/mioga/software.cfg
View file @
59aee732
...
...
@@ -58,6 +58,7 @@ modules =
P/PA/PARDUS/File-MimeInfo/File-MimeInfo-0.16.tar.gz
O/OV/OVID/HTML-TokeParser-Simple-3.15.tar.gz
D/DS/DSKOLL/MIME-tools-5.503.tar.gz
D/DS/DSKOLL/IO-stringy-2.110.tar.gz
C/CO/COSIMO/HTTP-DAV-0.47.tar.gz
M/MA/MARSCHAP/perl-ldap-0.48.tar.gz
F/FD/FDESAR/Parse-Yapp-1.05.tar.gz
...
...
@@ -102,6 +103,7 @@ pre-configure-hook = ${mioga-hooks:location}/${mioga-hooks:filename}:pre_configu
configure-command =
${perl:location}/bin/perl Makefile.PL
keep-compile-dir = true
perl-binary = ${perl:location}/bin/perl
[mioga-patch]
recipe = hexagonit.recipe.download
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment