summaryrefslogtreecommitdiff
path: root/picl/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'picl/debian/rules')
-rwxr-xr-xpicl/debian/rules66
1 files changed, 0 insertions, 66 deletions
diff --git a/picl/debian/rules b/picl/debian/rules
deleted file mode 100755
index 067c8c6..0000000
--- a/picl/debian/rules
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/usr/bin/make -f
-
-# How to get orig tarball:
-# tar cvJf picl_5.11.orig.tar.xz \
-# usr/src/cmd/picl \
-# usr/src/lib/libpicl \
-# usr/src/lib/libpicltree \
-# usr/src/man/man3picl* \
-# usr/src/man/man1m/picld.1m \
-# usr/src/man/man1m/prtpicl.1m
-
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-
-%:
- dh $@
-
-# For a while we use binary "sources"
-override_dh_auto_configure:
-override_dh_auto_build:
- cd src/lib/libpicltree && $(CC) $(CFLAGS) \
- -shared -fPIC -I . -I ../libpicl -I ../../cmd/picl/plugins/inc \
- *.c -o libpicltree.so.1 -Wl,-soname -Wl,libpicltree.so.1 \
- -Wl,--version-script -Wl,mapfile-vers && \
- ln -sf libpicltree.so.1 libpicltree.so
-
- cd src/lib/libpicl && $(CC) $(CFLAGS) \
- -shared -fPIC -I . \
- *.c -o libpicl.so.1 -Wl,-soname -Wl,libpicl.so.1 \
- -Wl,--version-script -Wl,mapfile-vers && \
- ln -sf libpicl.so.1 libpicl.so
-
- cd src/cmd/picl/picld && $(CC) $(CFLAGS) \
- -I ../../../lib/libpicl -I ../../../lib/libpicltree \
- -D_REENTRANT -DTEXT_DOMAIN="\"SUNW_OST_OSCMD\"" \
- -L ../../../lib/libpicltree -lpicltree \
- *.c -o picld
-
- cd src/cmd/picl/prtpicl && $(CC) $(CFLAGS) \
- -I ../../../lib/libpicl \
- -D_REENTRANT -DTEXT_DOMAIN="\"SUNW_OST_OSCMD\"" \
- -L ../../../lib/libpicl -lpicl \
- *.c -o prtpicl
-
-override_dh_auto_clean:
- rm -f src/lib/libpicltree/*.so*
- rm -f src/lib/libpicl/*.so*
- rm -f src/cmd/picl/picld/picld
- rm -f src/cmd/picl/prtpicl/prtpicl
-
-override_dh_auto_test:
-override_dh_auto_install:
- mkdir -p debian/tmp/lib/svc/manifest/system/
- mkdir -p debian/tmp/usr/include
- mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
- mkdir -p debian/tmp/usr/lib/picl
- mkdir -p debian/tmp/usr/sbin
- mkdir -p debian/tmp/usr/share
- cp -a src/cmd/picl/picld/picld debian/tmp/usr/lib/picl/
- cp -a src/cmd/picl/prtpicl/prtpicl debian/tmp/usr/sbin/
- cp -a src/lib/libpicl*/*.h debian/tmp/usr/include/
- cp -a src/lib/libpicl*/*.so* debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
- cp -a src/man debian/tmp/usr/share/
- cp src/cmd/picl/picld/picl.xml debian/tmp/lib/svc/manifest/system/
-
-override_dh_installmodules:
-