Permalink
Browse files

Add framework for debian package creation

  • Loading branch information...
Vitaly _Vi Shukela
Vitaly _Vi Shukela committed Jan 23, 2011
1 parent 2bed16b commit ad05a9cdad47ab9796f7fa905719192346230aed
Showing with 37 additions and 3 deletions.
  1. +2 −0 .gitignore
  2. +22 −3 Makefile
  3. +13 −0 control
View
@@ -7,3 +7,5 @@ fusecow
qq
read
w
+*.deb
+VERSION
View
@@ -1,8 +1,27 @@
-all:
+all: fusecow
+
+fusecow: fusecow.c Makefile
gcc -g3 -O2 -Wall `pkg-config fuse --cflags --libs` fusecow.c -o fusecow
-prefix=/usr
+prefix=/usr/local
-install:
+install: fusecow
install fusecow ${prefix}/bin/
+VERSION: .git
+ git describe --dirty > VERSION || echo unknown > VERSION
+
+.PHONY: test deb
+
+deb: fusecow VERSION control
+ rm -Rf deb
+ mkdir -p deb/usr/bin/
+ mkdir -p deb/DEBIAN
+ cp control deb/DEBIAN/control
+ echo Version: `cat VERSION` >> deb/DEBIAN/control
+ touch deb/DEBIAN/conffiles
+ cp fusecow deb/usr/bin/
+ strip deb/usr/bin/fusecow
+ fakeroot dpkg-deb -b deb fusecow-`cat VERSION`.deb
+ rm -Rf deb
+
View
13 control
@@ -0,0 +1,13 @@
+Package: fusecow
+Priority: extra
+Section: utils
+Installed-Size: 8
+Maintainer: Vitaly "_Vi" Shukela <vi0oss@gmail.com>
+Architecture: i386
+Depends: fuse-utils,libfuse2,libc6
+Description: Copy-on-write using FUSE and sparse files
+ Limitations: slow, cannot grow files
+ Main usages:
+ mount reiserfs in really-read-only mode.
+ Safer whole-HDD-access for virtual machines
+Homepage: http://github.com/vi/fusecow

0 comments on commit ad05a9c

Please sign in to comment.