Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Xapiand as a Debian package #11

Open
Kronuz opened this issue Mar 24, 2019 · 3 comments
Open

Add Xapiand as a Debian package #11

Kronuz opened this issue Mar 24, 2019 · 3 comments

Comments

@Kronuz
Copy link
Owner

Kronuz commented Mar 24, 2019

We need to have Xapiand available as a Debian package, installable in Debian and Ubuntu. @vit1251 any idea what we need towards that goal? Can you help?

@vit1251
Copy link
Contributor

vit1251 commented Mar 25, 2019

I think that Travis-CI does not provide a wide specter of Linux package (only outdate Ubuntu). We here have two way:

@vit1251
Copy link
Contributor

vit1251 commented Mar 25, 2019

To create Debian package we have a many ways.

  • Make package with debian helper (dh) and many additional scripting tools;
  • Using Debian package archiver to pack directory structure.

I second way is more popular but you may construct combine with use additional utilite bonuses.

P.S. Litte later I sare here script to make .deb package.

@vit1251
Copy link
Contributor

vit1251 commented Mar 28, 2019

Hello, I search in source code some simple way to create Debian package without using script based build. I provide Makefile part with simple operation:

PRODUCT=my_custom_product_name
PRODUCT_EXECUTABLE=my_app
VERSION=1.0.0
ARCH=amd64

package:
	install -m 0755 -d ./package
	install -m 0755 -d ./package/DEBIAN
	install -m 0755 -d ./package/usr/local/bin
	install -m 0755 ./builddir/$(PRODUCT_EXECUTABLE) ./package/usr/local/bin/$(PRODUCT_EXECUTABLE)
	install -m 0644 ./contrib/control ./package/DEBIAN/control
	dpkg-deb --verbose --build ./package $(PRODUCT)_$(VERSION)_$(ARCH).deb

File control you may create with using blueprint on https://gist.github.com/citrusui/c3358f9661550e8cb849 and more description you may read in http://www.chiark.greenend.org.uk/doc/debian-policy/policy.html/ch-controlfields.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants