summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/ipk_packaging/SConstruct15
-rw-r--r--examples/ipk_packaging/main.c4
-rw-r--r--examples/msi_packaging/README1
-rw-r--r--examples/msi_packaging/SConstruct19
-rw-r--r--examples/msi_packaging/helloworld.dll1
-rw-r--r--examples/msi_packaging/main.exe1
-rw-r--r--examples/rpm_packaging/international/SConstruct25
-rw-r--r--examples/rpm_packaging/international/main.c4
-rw-r--r--examples/rpm_packaging/simple/SConstruct20
-rw-r--r--examples/rpm_packaging/simple/main.c4
-rw-r--r--examples/src_packaging/SConstruct11
-rw-r--r--examples/src_packaging/src/foobar.c0
-rw-r--r--examples/src_packaging/src/foobar.h0
13 files changed, 105 insertions, 0 deletions
diff --git a/examples/ipk_packaging/SConstruct b/examples/ipk_packaging/SConstruct
new file mode 100644
index 00000000..c8c54ebd
--- /dev/null
+++ b/examples/ipk_packaging/SConstruct
@@ -0,0 +1,15 @@
+prog = Install( '/bin/', Program( 'main.c') )
+
+Package( projectname = 'foo',
+ version = '1.2.3',
+ architecture = 'arm',
+ x_ipk_maintainer = 'user <user@somehost.net>',
+ x_ipk_priority = 'optional',
+ source_url = 'http://ftp.gnu.org/foo-1.2.3.tar.gz',
+ x_ipk_depends = 'libc6, grep',
+ type = 'ipk',
+ summary = 'bla bla bla',
+ x_ipk_section = 'extras',
+ description = 'this should be reallly really long',
+ source = [ prog ],
+ )
diff --git a/examples/ipk_packaging/main.c b/examples/ipk_packaging/main.c
new file mode 100644
index 00000000..5940dd6c
--- /dev/null
+++ b/examples/ipk_packaging/main.c
@@ -0,0 +1,4 @@
+int main( int argc, char *argv[] )
+{
+ return 0;
+}
diff --git a/examples/msi_packaging/README b/examples/msi_packaging/README
new file mode 100644
index 00000000..2e54e702
--- /dev/null
+++ b/examples/msi_packaging/README
@@ -0,0 +1 @@
+This is the README file.
diff --git a/examples/msi_packaging/SConstruct b/examples/msi_packaging/SConstruct
new file mode 100644
index 00000000..cabe70eb
--- /dev/null
+++ b/examples/msi_packaging/SConstruct
@@ -0,0 +1,19 @@
+#
+# Build a minimal msi installer with two features.
+#
+
+f1 = Install( '/bin/', File('main.exe') )
+f2 = Install( '/lib/', File('helloworld.dll') )
+f3 = Install( '/doc/', File('README') )
+
+Tag( f2, x_msi_feature = 'Resuable Components' )
+Tag( f3, 'doc' )
+
+Package( projectname = 'helloworld',
+ version = '1.0',
+ packageversion = '1',
+ license = 'gpl',
+ type = 'msi',
+ vendor = 'Nanosoft',
+ summary = 'A HelloWorld implementation',
+ source = [ f1, f2, f3 ], )
diff --git a/examples/msi_packaging/helloworld.dll b/examples/msi_packaging/helloworld.dll
new file mode 100644
index 00000000..1404bcf3
--- /dev/null
+++ b/examples/msi_packaging/helloworld.dll
@@ -0,0 +1 @@
+a fake .dll
diff --git a/examples/msi_packaging/main.exe b/examples/msi_packaging/main.exe
new file mode 100644
index 00000000..36c366c2
--- /dev/null
+++ b/examples/msi_packaging/main.exe
@@ -0,0 +1 @@
+a fake .exe
diff --git a/examples/rpm_packaging/international/SConstruct b/examples/rpm_packaging/international/SConstruct
new file mode 100644
index 00000000..0d149328
--- /dev/null
+++ b/examples/rpm_packaging/international/SConstruct
@@ -0,0 +1,25 @@
+# coding: utf-8
+import os
+
+prog_install = Install( os.path.join( ARGUMENTS.get('prefix', '/'), 'bin'), Program( 'main.c' ) )
+Tag( prog_install, unix_attr='(0755, root, users)' )
+
+Default( Package( projectname = 'foo',
+ version = '1.2.3',
+ type = 'rpm',
+ license = 'gpl',
+ summary = 'hello',
+ summary_de = 'hallo',
+ summary_fr = 'bonjour',
+ packageversion = 0,
+ x_rpm_Group = 'Application/office',
+ x_rpm_Group_de = 'Applikation/büro',
+ x_rpm_Group_fr = 'Application/bureau',
+ description = 'this should be really long',
+ description_de = 'das sollte wirklich lang sein',
+ description_fr = 'ceci devrait être vraiment long',
+ source = [ prog_install ],
+ source_url = 'http://foo.org/foo-1.2.3.tar.gz',
+ ) )
+
+Alias ( 'install', prog_install )
diff --git a/examples/rpm_packaging/international/main.c b/examples/rpm_packaging/international/main.c
new file mode 100644
index 00000000..5940dd6c
--- /dev/null
+++ b/examples/rpm_packaging/international/main.c
@@ -0,0 +1,4 @@
+int main( int argc, char *argv[] )
+{
+ return 0;
+}
diff --git a/examples/rpm_packaging/simple/SConstruct b/examples/rpm_packaging/simple/SConstruct
new file mode 100644
index 00000000..77c9d9b6
--- /dev/null
+++ b/examples/rpm_packaging/simple/SConstruct
@@ -0,0 +1,20 @@
+import os
+
+install_dir = os.path.join( ARGUMENTS.get('prefix', '/'), 'bin/' )
+prog_install = Install( install_dir , Program( 'main.c') )
+
+Tag( prog_install, unix_attr = '(0755, root, users)' )
+
+Package( projectname = 'foo',
+ version = '1.2.3',
+ type = 'rpm',
+ license = 'gpl',
+ summary = 'bla bla bla',
+ packageversion = 0,
+ x_rpm_Group = 'Application/office',
+ description = 'this should be reallly really long',
+ source_url = 'http://foo.org/foo-1.2.3.tar.gz',
+ source = [ prog_install ],
+ )
+
+Alias( 'install', prog_install )
diff --git a/examples/rpm_packaging/simple/main.c b/examples/rpm_packaging/simple/main.c
new file mode 100644
index 00000000..5940dd6c
--- /dev/null
+++ b/examples/rpm_packaging/simple/main.c
@@ -0,0 +1,4 @@
+int main( int argc, char *argv[] )
+{
+ return 0;
+}
diff --git a/examples/src_packaging/SConstruct b/examples/src_packaging/SConstruct
new file mode 100644
index 00000000..1e662af1
--- /dev/null
+++ b/examples/src_packaging/SConstruct
@@ -0,0 +1,11 @@
+from glob import glob
+
+src_files = glob( 'src/*.c' )
+include_files = glob( 'src/*.h' )
+
+SharedLibrary( 'foobar', src_files )
+
+Package( projectname = 'libfoobar',
+ version = '1.2.3',
+ type = [ 'src_zip', 'src_targz', 'src_tarbz2' ],
+ source = FindSourceFiles() )
diff --git a/examples/src_packaging/src/foobar.c b/examples/src_packaging/src/foobar.c
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/examples/src_packaging/src/foobar.c
diff --git a/examples/src_packaging/src/foobar.h b/examples/src_packaging/src/foobar.h
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/examples/src_packaging/src/foobar.h